无法向关闭的通信请求 Python Spyder IDE 错误。

huangapple go评论76阅读模式
英文:

Can't make a request to closed comm Python Spyder IDE error

问题

有人之前遇到过这个问题吗?当我尝试在使用NVIDIA Nsight Systems时在Spyder IDE中运行Python脚本时,我收到以下错误消息。

CommError: 无法向已关闭的通信发出请求

英文:

Has anyone had this problem before? I get the below error message when I try to run a Python script in Spyder IDE while using NVIDIA Nsight Systems.

> CommError: Can't make a request to a closed comm

答案1

得分: 3

显然,重新启动内核功能似乎无法正常工作。您可以停止该内核并打开一个新控制台,这将触发新内核的初始化,而无需重新启动整个程序(Spyder 4)。

英文:

Apparently the restart kernel functionality doesn't work properly. You can stop that kernel and open up a new console, this triggers the init of a new kernel without restart the whole program (Spyder 4)

答案2

得分: 2

这个错误是在尝试生成图表时出现的吗?如果是的话,我也遇到过类似的情况,以下步骤对我有效:

  1. 首选项 > IPython控制台 > 图形:确保"图形后端"设置为自动。

  2. 视图 > 面板 > 图表:检查"静音内联绘图"是否被选中,然后在此面板中查看您的图表。

英文:

Does this error occurs when trying to generate plots? If so, I was also in such a situation and this works for me:

  1. Preference > IPython console > Graphic: Check "Graphic Backend" is set to Automatic

  2. View > Panes > Plots: Check that "Mute inline plotting" is checked and view your plots using this pane afterward.

答案3

得分: 1

Yep. 和 Spyder 4.0 一样。降级到 3.3.6 解决了。

英文:

Yep. Same here with Spyder 4.0. Downgrading to 3.3.6 resolves.

答案4

得分: 1

重新启动Spyder应用程序并运行程序。这对我有用。

英文:

Restart the spyder app and run the program. This worked out for me

huangapple
  • 本文由 发表于 2020年1月3日 13:28:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/59573606.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定