How can I add a table of contents to a Jupyter / JupyterLab notebook?

后端 未结 10 1818
深忆病人
深忆病人 2020-12-12 11:12

The documentation at http://ipython.org/ipython-doc/stable/interactive/notebook.html says

You can provide a conceptual structure for your computationa

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 11:50

    You can add a TOC manually with Markdown and HTML. Here's how I have been adding:

    Create TOC at top of Jupyter Notebook:

    ## TOC:
    * [First Bullet Header](#first-bullet)
    * [Second Bullet Header](#second-bullet)
    

    Add html anchors throughout body:

    ## First Bullet Header 
    
    code blocks...
    
    ## Second Bullet Header 
    
    code blocks...
    

    It may not be the best approach, but it works. Hope this helps.

提交回复
热议问题