Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.37 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.37 KB

Cell Folding - Jupyter Notebook Extension

A Jupyter Notebook extension that enabled cell folding. Double clicking on the left side of a code cell will toggle collapse/expand.

Demo:

Your code with millions of imports and super complex logic:

Simply double clicking left of the code cell will collapse it to a single line:

Double clicking again will expand the cell, taking it back to the orignal size.

Install

pip install nbextension-cellfolding
jupyter nbextension install --py cellfolding --user
jupyter nbextension enable --py cellfolding --user 

Install Jupyter Contrib (Optional)

pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator
jupyter contrib nbextension install --user 
jupyter nbextensions_configurator enable --user

Jupyter Configurator

This extension is also compatible with nbextension configurator and can be enabled via the nbextensions tab.

Contributing

The repo is in early days and implements basic functionality, it has no effect on published notebooks and the layout will not be remembered if the notebook is closed. Basically, there is a bunch of stuff to do, if you want to contribute please make a pull request.