首先我有安装扩展,那个插件还是没有,也试过了多种办法都不行
苹果电脑上也没有Anaconda Prompt,也下载不了
(我的电脑是M1芯片的)
引用 皆我百晓生 小程序回复内容作答:
如果你无法通过安装扩展来显示Jupyter中Markdown的目录,可以尝试以下方法:
Table of Contents
。然后,在文档的其余部分根据需要创建其他标题,给它们分配ID。最后,在目录部分使用链接到各个标题的锚点。示例如下:# Table of Contents {#toc}
- [Section 1](#section1)
- [Section 2](#section2)
- [Section 3](#section3)
## Section 1 {#section1}
内容...
## Section 2 {#section2}
内容...
## Section 3 {#section3}
内容...
这样,当你在Notebook中运行该Markdown时,你将会看到目录,并且可以通过点击目录中的链接来跳转到相应的部分。
希望以上方法对你有帮助!
安装之后还有个配置文件要改吧。
结合GPT给出回答如下请题主参考
在Jupyter中使用Markdown的目录,可以使用插件:jupyter_contrib_nbextensions。请确保已经安装该插件。
为了用更加详细的方式来说明,我将分为以下几个步骤:
步骤1:安装jupyter_contrib_nbextensions
使用以下命令安装插件:
!pip install jupyter_contrib_nbextensions
步骤2:启用jupyter_contrib_nbextensions
启用插件可以使用以下命令:
!jupyter contrib nbextension install --user
这将会自动为您启用插件。
步骤3:开启Table of Contents插件
在Jupyter中,打开notebook后,在菜单中选中"Nbextensions"选项卡。在该选项卡中,找到并勾选"Table of Contents (2)"插件,如下图所示:

- [Section 2](#section2)
- [Section 3](#section3)
## Section 1 {#section1}
内容...
## Section 2 {#section2}
内容...
## Section 3 {#section3}
内容...
https://wenku.csdn.net/answer/f3a9cec54a9841e098250d240719df65
如果以上回答对您有所帮助,点击一下采纳该答案~谢谢
打开Jupyter Notebook。
单击右上角的 "Nbextensions" 选项卡,看看 "Table of Contents" 或 "Collapsible Headings" 是否已启用。如果没有启用,请启用它们。
确保您的nbextensions扩展是最新版本。您可以通过以下命令来更新它:
pip install jupyter_contrib_nbextensions --upgrade
jupyter contrib nbextension install --user
用这个命令安装后重启
!pip install -i pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ jupyter_contrib_nbextensions
!jupyter contrib nbextension install --user
!pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ jupyter_nbextensions_configurator
!jupyter nbextensions_configurator enable --user
【相关推荐】