Define subsets of code cells as scenes and execute them.
Project description
jupyterlab_scenes
Define subsets of code cells as scenes and execute them.
Usage
- The command "Toggle Scene Cell" attaches a cell to the active scene (or removes it again). Scene membership is indicated by the purple dot at the right end of the cell.
- The active scene is the scene that is currently displayed (purple dots) and can be edited.
- All cells of a scene are executed by clicking the run button in the scene.
- One cell can be part of multiple scenes.
- By clicking the
init
button, one scene can be chosen to be automatically executed as the kernel becomes ready (due to a restart or at the initial loading of the notebook). - If a notebook with an already running kernel is opened, the init scene is not executed.
- Only one scene can be an init scene.
- To run a scene named
My Favourite Scene
programatically, do
But you may run only one scene at a time. No excessive looping as the scenes are executed only after the cell that launches thefrom ipylab import JupyterFrontEnd JupyterFrontEnd().commands.execute('scenes:run-scene', 'My Favourite Scene')
run-scene
command is finished.
Requirements
- JupyterLab >= 4.0
Install
To install the extension, execute:
pip install jupyterlab_scenes
Uninstall
To remove the extension, execute:
pip uninstall jupyterlab_scenes
Packaging the extension
See RELEASE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jupyterlab_scenes-2.0.0a2.tar.gz
(244.8 kB
view hashes)
Built Distribution
Close
Hashes for jupyterlab_scenes-2.0.0a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26af42a36551a4dbb80ceeb287fd24eb5d0b1831a7b4b100f336deb5563b4a14 |
|
MD5 | a45d765d34e2b208e1bcb3710c0dd998 |
|
BLAKE2b-256 | dc57dc40072a0bd716225faa0fa6aa6330caedd1a6cec5bcafe9b4e81432d337 |
Close
Hashes for jupyterlab_scenes-2.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2d033e586c65ce7dbe45ef8639ab7a73dc295f826932082c29cb55d9235f238 |
|
MD5 | f1eba0c0e92ab38901ba069372974f3c |
|
BLAKE2b-256 | 3f31d4f4444e47cc7dd079534c2c93fee458da60446a71fdebab09eb56fd4d85 |