Skip to content

Installing notebook extensions

MartinJFL edited this page Apr 11, 2017 · 11 revisions

Also see ipython-contrib/IPython-notebook-extensions for more details.

Installing the Ipython-notebook-extensions package

On Windows, install command-line git: https://git-scm.com/download/win

With Anaconda

git clone https://github.com/ipython-contrib/IPython-notebook-extensions.git

conda build IPython-notebook-extensions

Without Anaconda

git clone https://github.com/ipython-contrib/IPython-notebook-extensions.git

cd IPython-notebook-extensions

python setup.py install 

Activating individual extensions from within the package

First, install the Jupyter Nbextensions Configurator (see https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator).

Launch the IPython notebook, and go to the /nbextensions URL. For example, if your notebook server is at http://localhost:8888/tree, go to http://localhost:8888/nbextensions.

Display a vertical ruler in notebook cells

Scroll down to the Ruler extension and click on Activate. You can adjust the parameters, for example, set color to #B3B3B3 to have a light grey line instead of the default red.

Installing document tool notebook extensions

These extensions provide functionality to generate a table of contents, to number all sections, and to move entire sections upwards or downwards inside the notebook. This makes dealing with larger notebooks substantially easier.

Installation is straightforward via the command line:

jupyter nbextension install https://github.com/Calysto/notebook-extensions/archive/master.zip

jupyter nbextension enable calico-document-tools

After launching a new notebook server, you should now see additional toolbar buttons.