Jupyter是交互式筆記,使用非常方便,但是也有點不足:
- 問題:如果Jupyter內容很多,我們如何快讀定位?
- 原因:jupyter沒有目錄結構。
我們想要的效果,直接上圖:
有了目錄,在找內容,真實太方便了。
這個如何實現呢,分下面幾步
步驟1:安裝jupyter_contrib_nbextensions插件
安裝方式1:pip install jupyter_contrib_nbextensions
如果網絡不好,請使用方式2;
安裝方式2:
- 下載jupyter_contrib_nbextensions
- 連接地址:https://pypi.org/project/jupyter-contrib-nbextensions/#files
- 下載後直接安裝:
pip install 下載路徑\jupyter_contrib_nbextensions-0.5.1-py2.py3-none-any.whl
步驟2:執行 jupyter contrib nbextension install --user
到這裏安裝完成
步驟3配置:
打開jupyter
jupyter notebook
配置如下:
然後就可以愉快編寫了。