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

set*_*tjf 7 python jupyter visual-studio-code

尝试在 VS Code 中运行 python 交互式窗口时,我不断收到此错误消息。我在另一台笔记本电脑上尝试过此操作,没有任何问题,但由于某种原因,它发生在我的另一台笔记本电脑上。错误信息是:

"Executing code failed : Error: Jupyter server crashed. Unable to connect. 
Error code from jupyter: 1"
Run Code Online (Sandbox Code Playgroud)

我尝试过卸载 VS Code、卸载 python 扩展、在线研究错误代码,但没有成功。

小智 13

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

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

然后选择一个安装了Jupyter的环境,以允许vscode启动服务器。

https://github.com/microsoft/vscode-python/issues/11048(参见 4 月 9 日评论)