ipython笔记本的TOC扩展会发生什么?

我试图在新计算机上安装伟大的目录扩展.但我再也找不到了.唯一的页面
I do find没有解释如何在Windows上安装扩展.

那么..我怎么能安装它,为什么它不是官方Ipython笔记本的一部分?我简直无法理解没有它的人是如何相处的.

解决方法

我最近用Jupyter 4(即ipython notebook 4)成功安装了
toc nbextension.

事实上安装扩展比以前更容易:)

我在这里发布我的解决方案,可能会有帮助.

## download 
mkdir toc
cd toc
wget https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/toc.js
wget https://raw.githubusercontent.com/minrk/ipython_extensions/master/nbextensions/toc.css

## install and enable
cd ..
jupyter-nbextension install --user toc
jupyter-nbextension enable toc/toc

更多解释:

install会将toc复制到/ .local / share / jupyter / nbextensions /

enable将修改/ .jupyter / nbconfig / notebook.json.

你可以检查这两个地方,看看发生了什么.

注意:我们在这里使用enable toc / toc是因为toc.js在/ .local / share / jupyter / nbextensions / toc /中.
如果你将toc.js和toc.css直接放在/ .local / share / jupyter / nbextensions /中,那么你应该在这里使用enable toc.

编辑

对不起,我没有注意到Windows上的原始问题.我不确定它是否与windows jupyter相同,欢迎任何报告.

更新

现在toc nbextension已添加到this project中,它提供了各种nbextensions的集合.它非常易于安装和管理,值得一试!

dawei

【声明】:淮南站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。