简体   繁体   English

从电源外壳午餐时Jupyter Notebook内核未连接

[英]Jupyter Notebook kernal is not connecting when lunching from power shell

I am facing this strange issue, when I am directly launching Jupyter Notebook from CMD it is running properly but when I am launching it from powershell it is not able to connect to the Kernal. 我面临着一个奇怪的问题,当我直接从CMD启动Jupyter Notebook时,它运行正常,但是当我从Powershell启动时,它无法连接到内核。

Also I have pip installed Plotly, when I am importing it in powershell, I am able to import properly, but the same this in jupyter, it is saying no module name Plotly (with proper casing)? 另外我已经安装了piply Plotly,当我在powershell中导入它时,我能够正确导入,但是在jupyter中也是如此,它说没有模块名称Plotly(带有正确的外壳)?

jupyter 4.4.0 and Python 3.6.5, iPython is already up to date jupyter 4.4.0和Python 3.6.5,iPython已经更新

Powershell上的问题 与jupyter cmd相同的文件 I am unable to find out what might be causing this issue. 我无法找出可能导致此问题的原因。 or something to inspect the kernals. 或检查内核的东西。 Can someone help me with this issue? 有人可以帮我解决这个问题吗?

在powershell python -m notebook上尝试一下

according to github issue try downgrading prompt-toolkit to the version 1.0.15 根据github问题尝试降级提示工具包到版本1.0.15

pip3 install 'prompt-toolkit<2.0.0,>=1.0.15' --force-reinstall

Python 3.6.5 Python 3.6.5
jupyter 1.0.0 jupyter 1.0.0
jupyter-client 5.2.3 jupyter客户端5.2.3
jupyter-console 5.2.0 jupyter-console 5.2.0
jupyter-core 4.4.0 jupyter核心4.4.0
ipython 6.4.0 ipython 6.4.0

You can even try upgrading iPython 您甚至可以尝试升级iPython

pip3 install --upgrade --user ipython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM