mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-13 12:20:43 +08:00
This is a quick workaround for https://github.com/jupyter/notebook/issues/699, Auto-Scrolling/Jumping to Previous Location Link which renders the toc extension quite unusable https://github.com/ipython-contrib/IPython-notebook-extensions/issues/424. The issue only affects Chrome/Chromium. The workaround consists in issuing a $.ajax(), which if I understand well, resets the queue of ajax requests. The suggestion comes from @jhamrick in the discussion referenced above. This is called, after a small delay, after each click on a link in the toc window. It seems to work (at least for me); hope it will also for others.
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.