mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-09 12:10:23 +08:00
The ToC is mostly a direct copy from https://github.com/minrk/ipython_extensions/ with minor edits (filenames) and the addition of readme, icon and the yaml activations. @minrk was fine with copying it here: https://github.com/minrk/ipython_extensions/issues/50 This script has a problem when two more occurences of the same headline appear in the notebook (e.g. multiple "Plots" headlines in different analyis steps). The resulting ToC will link to the same anchor and the browser will always move to the first version of this headline. See https://github.com/jupyter/notebook/issues/77 for more information on this problem.
Table of content of the notebooks markdown headers
Description
The extension installs a new button which opens a table of content for the headlines defined in this notebook. Currently only the first four levels (h1-h4 or up to '####' headlines in markdown) are displayed.
Due to restrictions in the current notebook format, recurrent headlines cannot be distinguished and the ToC will link to the first occurrence.