Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 738
cmed123 Avatar asked Nov 15 '25 21:11

cmed123


2 Answers

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)

like image 145
rbt Avatar answered Nov 17 '25 11:11

rbt


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.

like image 29
Hilary Chang Avatar answered Nov 17 '25 12:11

Hilary Chang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!