1. 程式人生 > >jupyter notebook 添加目錄

jupyter notebook 添加目錄

ont help ext 目錄 主界面 prompt ipy 選項 jupyter

1.在Windows搜索框中輸入Anaconda Prompt並打開。

2.輸入安裝:pip install jupyter_contrib_nbextensions

  • 如果出現紅色:distributed 1.21.8 requires msgpack, which is not installed.

  • 那就安裝它:pip install msgpack

3.繼續安裝:jupyter contrib nbextension install --user

4.重新打開jupyter notebook之後,在主界面你會發現多了個Nbextensions選項卡,就在clusters右邊

5.點擊Nbextensions選項卡,找到Table of Contents(2)復選框,並勾選上。

6.新打開一個ipynb文件,在Help下面會多了一個按鈕。此時沒有目錄。目錄是產生於你書寫的Markdown(####)標題格式。講不清,自己去實驗吧。

jupyter notebook 添加目錄