In the Caption dialog box, enter a caption for the table in the Caption box. If the Caption dialog box does not appear, click Insert, point to Reference and then select Caption. Right-click and select Caption from the context menu that appears. 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. Select the table you want to add the caption to. Now on the main Jupyter page, click the tab “Nbextensions”, then check the box for “Table of contents (2)”. 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.
0 Comments
Leave a Reply. |