Add live code editing using thebelab
This MR adds the ability for live code editing.
- Code that is not allowed to be edited should be marked using
{python editable=false}
. A button under this cell will appear that enables editing for all cells. - Code that should run on initialization should be marked using
{python initialize=true}
. This code is automatically run when the kernel is connected.
Todo:
- Wait until 2 PRs are merged into thebelab so we can use them.
Merge request reports
Activity
- Resolved by Anton Akhmerov
You cannot type S and F right now, as they are shortcuts for focusing the search field.
- Resolved by Anton Akhmerov
We probably want only a single "make live" button at the top of the document.
(I think it's excessive if it appears next to every single output)
Edited by Anton Akhmerov
- Resolved by Anton Akhmerov
TODO: wait until https://github.com/minrk/thebelab/pull/131 and https://github.com/minrk/thebelab/pull/132 are merged and the new version of thebelab is released.
Then we should remove the inlined thebelab.
Edited by Anton Akhmerov
- Resolved by Hugo Kerstens
plotly plots seem to be unaffected by activating thebelab; likely because they are not wrapped in the correct tag.
- Resolved by Hugo Kerstens
added 2 commits
added 1 commit
- dbce63b3 - Only show make live button if there is editable code
- Resolved by Hugo Kerstens
There's a visual problem here:
- Resolved by Hugo Kerstens
After activating thebelab, latex code used in plotly plots is rendered again above the plot by Mathjax. For example here:
mentioned in issue #58 (closed)
mentioned in issue #59 (closed)
mentioned in commit 3f199919