Now when you start a notebook, click the “Table of Contents” button, and you’ll get a sidebar on the left with your table of contents. Click OK and when Word asks would you like to replace the selected table. Delete all other priorities leaving only Appendix Subheading with a priority of 1. Under the Table of Contents tab select Options. Now on the main Jupyter page, click the tab “Nbextensions”, then check the box for “Table of contents (2)”. Go to the References tab, click to open the Table of Contents menu, and select Insert Table of Contents (Custom Table of Contents on Mac). This command is needed to complete the installation of the extensions to Jupyter itself: jupyter contrib nbextension install -user This bundles a bunch of extensions to Jupyter, as well as a configuration panel that will be added to the Jupyter interface. Now install jupyter_contrib_nbextensions.
Assuming you followed my instructions on setting up a virtual environment in Python 3, activate it with (substitute your own path if needed): source. I don’t know why it isn’t just a standard feature in Jupyter.įiguring out how to install it is a bit annoying as instructions are poorly written across several Github repos, but the process is actually very simple (if a little hacky). This is basically essential when you’re working with a notebook of any real length. Table of contents 2 is a very useful extension to Jupyter notebook that allows you to have a nested outline with links to all the Markdown headings in a Jupyter notebook.