This extension enables to execute cells contained in a collapsed heading section with one click, and view a summary of hidden outputs.
Successfully executed cells are frozen automatically to prevent to re-run.
- Jupyter Notebook 4.2.x or 5.x
- Collapsible Headings extension is installed and enabled
Install the python package
$ pip install git+https://github.com/NII-cloud-operation/Jupyter-LC_run_through
Install and enable this extension and enable required extensions
$ jupyter run-through quick-setup
Disable and uninstall this extension
$ jupyter run-through quick-remove
The extension uses latest(test with 4.7.0) Font Awesome icons. If you use Jupyter Notebook Server 5.0.0 or earlier, you should update Font Awesome as follows:
-
Retrieve the notebook installed path
$ find /usr -name FontAwesome.otf | grep notebook /usr/local/lib/python2.7/dist-packages/notebook/static/components/font-awesome/fonts/FontAwesome.otf
-
Download and Update Font Awesome
cd /tmp/ curl -O http://fontawesome.io/assets/font-awesome-4.7.0.zip unzip font-awesome-4.7.0.zip cp font-awesome-4.7.0/fonts/* /usr/local/lib/python2.7/dist-packages/notebook/static/components/font-awesome/fonts/
Any markdown heading cell (that is, one which begins with 1-6 # characters), becomes collapsible once rendered.
Please see readme.md of Collapsible Headings about details.
The run-through button and summary of outputs appear in a collapsed heading cell.
The code cells which are collapsed appear as colored bricks. The colors mean as follows:
- Gray: Not Executed
- Green: Successfully Executed
- Pink: Failed
A brick with a snowflake means it is Frozen cell as below.
The extension provides Lock(make the cell read only) and Freeze(prevent re-execution) functions like Freeze extention , but also allows to control the Locked(Read Only) and Frozen states separately.
When the extension is enabled, the buttons below appear on the toolbar.
For the Locked(Read Only) state:
- Make selected cells read-only
- Make selected cells editable
For the Frozen state:
- Freeze selected cells
- Unfreeze selected cells
- Unfreeze below in section
- Unfreeze below all