A JavaScript table of contents for the IPython notebook

UPDATE nov 25 2015: This won’t work with Ipython version 4 a.k.a. Jupyter. see this new post.

If like me you use the IPython notebook a lot, you might be interested in an automatically generated table of contents.

Add the following code in a markdown cell :

and add the following custom javascript file at the correct location in your Ipython home directory (.ipython/profile_default/static/custom/custom.js if you use linux) :

You can also update the custom.css file if needed and here is the final result.


Comments are closed