ipython Notebook的TOC扩展发生了什么? [英] What happened to the TOC extension for ipython notebook?

查看:84
本文介绍了ipython Notebook的TOC扩展发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在新计算机上安装出色的目录扩展名.但我找不到了.唯一的页面我确实找到,它没有解释如何在Windows上安装扩展.

I'm trying to install the great table of contents extension in a new computer. but I cant find it anymore. the only page I do find does not explain how to install the extension on windows.

所以..我如何安装它,为什么它不属于Ipython官方笔记本的一部分?没有它,我简直无法理解人们的相处.

So.. How can I install it, and why is it not a part of the official Ipython notebook? I simply can't understand how people are getting along without it.

推荐答案

我已经安装了 toc nbextension 最近成功使用 Jupyter 4 (即ipython notebook 4). 实际上,安装扩展程序比以前容易:)

I've installed toc nbextension successfully with Jupyter 4 (ie. ipython notebook 4) recently. In fact installing extension is easier than before :)

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

I post my solution here, may it help.

## 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.

您可以检查这两个地方以查看发生了什么情况.

You can check these two place to see what happened.

注意:之所以使用enable toc/toc,是因为toc.js~/.local/share/jupyter/nbextensions/toc/中. 如果将toc.jstoc.css直接放在~/.local/share/jupyter/nbextensions/中,则应在此处使用enable toc.

Note: we use enable toc/toc here is because toc.js is in ~/.local/share/jupyter/nbextensions/toc/. If you put toc.js and toc.css directly in ~/.local/share/jupyter/nbextensions/ then you should use enable toc here.

修改

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

Sorry, I didn't notice the orginal problem is on windows. I'm not sure if it's same for windows jupyter, any report is welcome.

更新

现在toc nbextension已添加到此项目中,该项目提供了一个集合各种各样的nbextensions.它非常容易安装和管理,值得一试!

Now the toc nbextension has been added into this project which provide a collection of kinds of nbextensions. It's very easy to install and manage, worth to try!

这篇关于ipython Notebook的TOC扩展发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆