英文:
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
这个错误是在尝试生成图表时出现的吗?如果是的话,我也遇到过类似的情况,以下步骤对我有效:
-
首选项 > IPython控制台 > 图形:确保"图形后端"设置为自动。
-
视图 > 面板 > 图表:检查"静音内联绘图"是否被选中,然后在此面板中查看您的图表。
英文:
Does this error occurs when trying to generate plots? If so, I was also in such a situation and this works for me:
-
Preference > IPython console > Graphic: Check "Graphic Backend" is set to Automatic
-
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论