Skip to main content
 首页 » 编程设计

python之为什么我的 Jupyter 工具栏缺少目录和引用按钮

2024年10月24日12sharpest

根据to this link我们可以在 Jupyter 中获取 TOC/Reference 工具栏:

但为什么我的那 3 个按钮没有出现? 如何启用它们?

我尝试安装 calico。 使用这个

$ sudo ipython install-nbextension https://bitbucket.org/ipre/calico/downloads/calico-document-tools-1.0.zip 
Password: 
downloading https://bitbucket.org/ipre/calico/downloads/calico-document-tools-1.0.zip to /tmp/tmpAG0vDt/calico-document-tools-1.0.zip 
extracting /tmp/tmpAG0vDt/calico-document-tools-1.0.zip to /usr/local/share/jupyter/nbextensions 

然后做这个给我失败。

In [1]: import IPython 
 
In [2]: IPython.load_extensions('calico-document-tools'); 
--------------------------------------------------------------------------- 
AttributeError                            Traceback (most recent call last) 
<ipython-input-2-0e54e8411271> in <module>() 
----> 1 IPython.load_extensions('calico-document-tools'); 
 
AttributeError: 'module' object has no attribute 'load_extensions' 
 
  [1]: http://jupyter.cs.brynmawr.edu/hub/dblank/public/Jupyter%20Notebook%20Users%20Manual.ipynb#1.-Getting-to-Know-your-Jupyter-Notebook's-Toolbar 
  [2]: https://jupyter.org/ 

请您参考如下方法:

Jupyter notebook 默认不提供您所说的功能。

在一些存储库中,您可以找到可以“轻松”安装的扩展,以改进笔记本的基本功能。在这里您可以找到一些准备安装的扩展: