Skip to content
Snippets Groups Projects

Add live code editing using thebelab

Merged Hugo Kerstens requested to merge thebelab into master
All threads resolved!

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.
Edited by Anton Akhmerov

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Hugo Kerstens added 2 commits

    added 2 commits

    • 3be508a7 - Correct version of thebelab-custom.js
    • 5f2d75b7 - Only single make live button at top

    Compare with previous version

  • Author Developer

    I accidentally pushed a version of thebelab-custom.js which only contained one of the two fixes. Now they should both be there.

    This means importing from common.py now actually works, so the output of the graphs is larger and in svg format.

  • Hugo Kerstens added 1 commit

    added 1 commit

    • dbce63b3 - Only show make live button if there is editable code

    Compare with previous version

  • Anton Akhmerov changed the description

    changed the description

  • Hugo Kerstens added 1 commit

    added 1 commit

    • 5b289004 - Add support for plotly with thebelab

    Compare with previous version

  • Hugo Kerstens added 1 commit

    added 1 commit

    • 76b8e99f - Make live button as magic wand

    Compare with previous version

  • Hugo Kerstens added 4 commits

    added 4 commits

    • 32ebdb79 - Merge plotly init cell with main init cell
    • 7887bc07 - Add stream block again
    • b2a457b6 - Keep showing magic wand button
    • 562dc230 - Remove unneeded plotly library

    Compare with previous version

  • mentioned in issue #58 (closed)

  • Anton Akhmerov resolved all discussions

    resolved all discussions

  • mentioned in issue #59 (closed)

  • Anton Akhmerov unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Anton Akhmerov mentioned in commit 3f199919

    mentioned in commit 3f199919

  • Please register or sign in to reply
    Loading