无法在jupyter'jupyter_contrib_nbextensions'中使用扩展名 [英] Can't use extension in jupyter 'jupyter_contrib_nbextensions'

查看:167
本文介绍了无法在jupyter'jupyter_contrib_nbextensions'中使用扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Jupyter笔记本电脑的新手,我想拥有一个自动自动完成代码的工具,并希望有一个类似于Spyder的变量浏览器.我发现了2个Stackoverflow页面(.但是,我只是不能使用它.当我用Pupyter编写代码时,不知何故没有改变.我需要进一步激活吗?

在使用Anaconda终端进行激活的过程中出现的一个问题是,我收到一条我不理解的消息.您可以在屏幕截图中看到它.也许这与我使用这些扩展名的困难有关(但可能不是).

有人知道我要使用这些扩展名必须做什么吗?我会很感激每条评论,非常感谢您的帮助.

我是否必须以其他方式(例如直接在笔记本电脑中)激活它?知道cmd中的警告/错误消息是什么意思吗?

赏金提醒:由于我尚未收到答案的解决方案,而且我的赏金即将过期,因此,我想提醒您这个问题.是否有人(进一步)知道问题可能是什么以及如何解决?我将不胜感激任何进一步的想法.

解决方案

尝试以下方法:

 <代码> $ pip install nb_xxx_extension$ jupyter nb_xxx_extension启用--sys前缀 

如果扩展名可用,则可以使用 conda 进行安装.否则,只需在您的conda env中安装 pip 并按上述方法安装.

I am new to Jupyter notebooks and I wanted to have a tool for automatic autocompletion of the code and to have a variable explorer like in Spyder. I found 2 Stackoverflow pages (Autocompletion in Juypter, Variable Explorer in Jupyter) recommending to use the jupyter_contrib_nbextensions.

I did exactly what is written in those posts for Anaconda and I could install the 'jupyter_contrib_nbextensions'. I also installed the 'hinterland' and 'varInspector' extension and I can see the extensions in Jupyter notebooks and activated them (see screenshot). However, I just can't use it. Somehow nothing has changed when I code in Pupyter. Do I have to activate somehting further?

One problem that comes up during activation using the terminal of Anaconda is that I get an message that I do not understand. You can see that in the screenshot. Maybe this has something to do with my difficulties using those extension (but maybe not) .

Does anyone have an idea what I have to do in order to use those extensions? I'd appreciate every comment and would be quite thankful for your help.

Do I have to somehow activate it at another position (e.g. directly in the notebook)? Any ideas what the warnings/error messages in the cmd mean?

Reminder on bounty: As I have not received a solution for my answer and my bounty is soon to expire, I'd like to remind you on this quesiton. Does anybody have (further) ideas what the problem might be and how to tackle it? I'd highly appreciate any further idea.

解决方案

Try these:

$ pip install nb_xxx_extension
$ jupyter nb_xxx_extension enable --sys-prefix

You could use conda to install if the extension is available. Otherwise just install pip in your conda env and install as above.

这篇关于无法在jupyter'jupyter_contrib_nbextensions'中使用扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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