1、安装 jupyter_contrib_nbextensions

pip install jupyter_contrib_nbextensions

2、配置 nbextension

jupyter contrib nbextension install --user

3、启动jupyter notebook。

选择 Nbextensions,勾选 Table of Contents。

(不能选择,就把disable configuration for nbextensions without explicit…取消。)
jupyter notebook显示目录_其他
示例如下:
jupyter notebook显示目录_jupyter_02