Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Jupyter服务器崩溃。无法连接。来自jupyter的错误代码:1“;_Python_Visual Studio Code_Jupyter - Fatal编程技术网

Python Jupyter服务器崩溃。无法连接。来自jupyter的错误代码:1“;

Python Jupyter服务器崩溃。无法连接。来自jupyter的错误代码:1“;,python,visual-studio-code,jupyter,Python,Visual Studio Code,Jupyter,在VS代码中尝试运行python交互窗口时,我一直收到此错误消息。我在另一台笔记本电脑上试过,没有问题,但出于某种原因,它发生在我的另一台笔记本电脑上。错误消息是: "Executing code failed : Error: Jupyter server crashed. Unable to connect. Error code from jupyter: 1" 我尝试过卸载VS代码,卸载python扩展,在线研究错误代码,但没有成功。只需配置“Jupyter笔记本”,启动“Jupyt

在VS代码中尝试运行python交互窗口时,我一直收到此错误消息。我在另一台笔记本电脑上试过,没有问题,但出于某种原因,它发生在我的另一台笔记本电脑上。错误消息是:

"Executing code failed : Error: Jupyter server crashed. Unable to connect. 
Error code from jupyter: 1"
我尝试过卸载VS代码,卸载python扩展,在线研究错误代码,但没有成功。

只需配置“Jupyter笔记本”,启动“Jupyter笔记本”

更多信息:


我也有类似的问题。我必须在VSCODE命令调色板中配置一个设置

“Python:选择解释器以启动Jupyter服务器”

并选择安装了Jupyter的环境,以允许vscode启动服务器


(参见4月9日的评论)

也许您已经在Jupyter默认使用的端口
8888
上运行了一些东西。不过我怀疑。你会怎么检查呢?嘿@sethtjf。我是这个扩展的开发者。我有一些东西可以帮助诊断。1.首先,当您使用交互式窗口时,您将在VSCode中从选定的python环境启动jupyter。当在vscode之外使用相同的环境时(通过类似的命令),您可以运行jupyter notebook并获得有效的服务器吗?2.如果对#1的回答是肯定的,您还可以查看VSCode中的控制台日志。只需试着运行交互式窗口并复制出您在控制台窗口的帮助->切换开发人员工具中看到的内容。嗨,伊恩,谢谢您的回复。我无法从命令行启动jupyter并连接到服务器。没有意义的回答。