-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于 jupyter lab 安装 toc 后无法在侧边栏显示的问题 #211
Comments
log 文件内容
|
这种问题通常是插件没装好导致的,删了重装应该就可以,你后面的一些尝试其实不是必需的(例如 首先确保你的 nodejs 装好了并且可用,我们的配置指南中建议用 然后卸掉之前安装的 toc: 最后重新安装: |
好的,谢谢老师,nodejs 是安装了 v12.18.3 版本,可以查到。然后使用命令卸载,会报错: 输入卸载的命令后,打开 jupyter lab 是可以看到在 install 一栏里没有了,再使用命令安装后刷新页面,可以在这里看到,只是左侧还是没有显示 toc 插件。 在进入 ./nbextensions 勾选 toc后,刷新页面也还是不显示。 是不是还有其他地方要设置显示这个插件? |
这个 具体解决方案还要搜搜。 |
Does this work for you? open your terminal, and run: npm config set unicode false reference |
@xuzhengfu |
It seems to be the problem in jupyterlab/jupyterlab#5345. Suppose you have Python installed as required by the course, run the following commands in Windows Terminal: task 1cd C:\Users\<username>\scoop\apps\python37\3.7.4\Lib
code .\site.py then, change line 480, from task 2cd C:\Users\xuzhengfu\scoop\apps\python37\3.7.4\Lib\site-packages\traitlets
code .\traitlets.py then, change line 2050, from |
我都不知道 Python 还有这么个 bug(看原 po 似乎是 2.7 版本的?), @DerickZo 同学赶紧试试,告诉我们是不是这个问题,结果如何…… 我看了下,我的 |
@xuzhengfu Thank you!But it doesn't work... 刚才按步骤尝试进行修改:
读写文件相关的解决方法我查过一些,是在我们常规写函数时读写文件要使用某个字符集,就像刚才做的修改,但是在python3安装插件时遇到这类报错,还没找到具体的解决方法。 |
找到python安装目录的lib\site-packages\jupyterlab\commands.py文件,
修改为:
也就是增加一个参数encoding="UTF-8",就可以了 |
刚开始课程时看到老师推荐TOC,安装完成后,在PowerShell直接使用指令:
jupyter labextension install @jupyterlab/toc
提示失败,没有装node.js,当时没有理会,略过了。
昨天重新尝试安装,按提示在nodejs.org下载安装后,还是不行。
在网上搜索,按照Jupyter Lab目录插件安装的说明操作,依次输入
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter labextension install @jupyterlab/toc
发现还是报错:
查看过《#13 jupyter 安装 TOC 插件失败》的同学提问,我的账户是英文名,并且我在jupyter lab里可以看到TOC已经安装,只是在侧边没有显示
然后又查了不显示插件的原因,发现可以在jupyter lab的地址后加**/nbextensions**,进行选择,勾选了toc后,重启后还是看不到toc。
这个插件不是必要的,不过比较担心以后安装其他的插件会不会遇到类似问题,能使用的功能就少很多,麻烦老师和同学帮忙看看,感谢~
系统与环境
The text was updated successfully, but these errors were encountered: