Skip to content

Installing notebook extensions

Stefan Pfenninger edited this page Nov 11, 2015 · 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 [email protected]:ipython-contrib/IPython-notebook-extensions.git

$ conda build IPython-notebook-extensions

Without Anaconda

$ git clone [email protected]:ipython-contrib/IPython-notebook-extensions.git

$ cd IPython-notebook-extensions

$ python setup.py install 

Activating individual extensions from within the package

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 Calico document tools

The Calico document tools 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. First, run the following code inside a notebook cell:

!ipython install-nbextension https://bitbucket.org/ipre/calico/downloads/calico-document-tools-1.0.zip

Then run the following code in another notebook cell:

%%javascript
Jupyter.notebook.config.update({"load_extensions":{"calico-document-tools": true}})

After reloading the browser page, you should see additional toolbar buttons.

Clone this wiki locally