加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

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

发布时间:2020-12-16 23:10:41 所属栏目:Python 来源:网络整理
导读:我试图在新计算机上安装伟大的目录扩展.但我再也找不到了.唯一的页面 I do find没有解释如何在Windows上安装扩展. 那么..我怎么能安装它,为什么它不是官方Ipython笔记本的一部分?我简直无法理解没有它的人是如何相处的. 解决方法 我最近用Jupyter 4(即ipyth
我试图在新计算机上安装伟大的目录扩展.但我再也找不到了.唯一的页面 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的集合.它非常易于安装和管理,值得一试!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读