Skip to content

Jupyter Notebook extension that adds collapsable cells.

Notifications You must be signed in to change notification settings

BenedictWilkins/cellfolding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Jupyter Notebook extension that adds collapsable cells.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published