Creating Table of Contents in VS code Jupyter Notebook

Question:

I am using the Jupyter extension in Visual Studio Code to maintain a notebook on python programming and I want to add a table of contents inside it. I want to add the TOC as the notebook is becoming very big and is becoming difficult to navigate.

I write a heading in markdown files using # to structure them properly.
I have also seen it how to do it on Jupyter Notebook both by sing hyperlinks and in build feature.

Is the feature not available in case of Jupyter extension in VS?
if you have any suggestions on how I can tackle this problem you are most welcome

screenshot for the problem

Asked By: Avishek Roy

||

Answers:

I’m a developer on this extension. VS Code has an existing "outline" feature for code editing. This feature is being reused in notebooks for holding ToC navigation. On your left side panel it’s "> Outline" below your open files. It should populate with markdown headings and be able to navigate to them. Like so:
enter image description here

Answered By: Ian Huff

I had the same feature needs and the built-in "outline" feature functionality wasn’t enough for me. Did not found the solution and made Jupyter TOC extension for Visual Studio Code which generates table of contents as separate markdown cell (optionally with numbering and/or anchor links between ToC and headers of the document, with ajustable levels of headers to collect to ToC).

Maybe it would be helpful.

Answered By: xelad0m