Jupyter Notebook add Table Of Contents (TOC)

If you have a Jupyter Notebook with a lot of cells and Markups and you want to share it with your students or colleagues, then having a Table of Content (TOC) can be really very beneficial.

Table of Content using Extension:

    To create a TOC, you will need to first get an extension module jupyter_contrib_nbextensions

    pip3 install jupyter_contrib_nbextensions

    Next you execute,

    jupyter contrib nbextension install --user

    You can run this extension as follows.

    jupyter nbextension enable toc2/main

Create Table of Contents Manually

# Table of Content
## Introduction
### What is Python
### Hello World!
### Print Function

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap