1

One of the main advantages of using Jupyter is the ability to code and document in the same time. Many times, I use headings and subheadings to group the code in a notebook. However, as the notebook gets longer, navigation becomes much harder.

It would be nice to have a document map in a separate (left) pane that keeps track of the markdown headings. Once a heading is selected in the document map, the respective section would appear in the main pane.

Is there an extension for this task?

Ébe Isaac
  • 8,387
  • 11
  • 48
  • 79

1 Answers1

1

I cannot comment on your question (low points) so if the answer is a bit off...

Possible duplicate of: How can I add a table of contents to an ipython notebook?

EDIT

Install instructions:

Toc2 is included in: https://github.com/ipython-contrib/jupyter_contrib_nbextensions

to install just TOC2 i did this:

pip3 install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextension enable toc2/main 

EDIT 2
How to display the TOC inside a notebook: http://awesomescreenshot.com/0116cqvh5b

mumbala
  • 121
  • 10
  • That is exactly what I want; Thanks. The installation instructions are, however, not so obvious. I'm not sure whether I can use the usual `jupyter nbextension install` command for this. Could you please show how to install the (first) extension? – Ébe Isaac Aug 09 '17 at 05:42
  • Install instructions can be found on the documentation page: http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html. Glad i could help – mumbala Aug 09 '17 at 05:44
  • to clarify this `toc2` is already included `ipython-contrib/jupyter_contrib_nbextensions repo by @JanSchulz` see git https://github.com/ipython-contrib/jupyter_contrib_nbextensions – mumbala Aug 09 '17 at 05:50
  • 1
    Many thanks. I was initially trying to enable `toc2` instead of `toc2/main` (didn't check the update on the answer). I found the Nbextensions tab much more friendly and easier to tune specific options within the toc2. Answer accepted! – Ébe Isaac Aug 09 '17 at 06:08