Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpyderKernelApp WARNING No such comm

Running a GA code on spyder through Anaconda, the script runs till the end and just before running the well plotter ( see below):

# Well Plotter
pdf = matplotlib.backends.backend_pdf.PdfPages("ROP Log.pdf")    
plt.figure(figsize=(5,21))
plt.plot(well_proposal['Pred_ROP'] , well_proposal['AHD'], c='r', label= 'Predicted ROP')
plt.ylim( bottom =max(well_proposal['AHD']),  top =min(well_proposal['AHD']))
plt.xlim(right = 100, left = 0)
plt.title('ROP VS Along Hole Depth')
plt.ylabel("Along Hole Depth (m)")
plt.xlabel("ROP (m/hr)")
plt.grid(b= True, which='both')
plt.legend(loc='upper right')
plt.tight_layout()
pdf.savefig()
pdf.close()

I got the following error " [SpyderKernelApp] WARNING | No such comm: 04cfd510c9b811ea9e48b8e8562fb6fe "

attempt to search for the error but it seems that most of the people stuck with [IPKernelApp] ERROR not [SpyderKernelApp]

Working on Mac OS Catalina 10.15.6

Any thoughts on the source of error?

like image 801
Mohammad Eltrissi Avatar asked Jul 19 '20 12:07

Mohammad Eltrissi


3 Answers

ok - for me the issue has been resolved - needed to add the extended dependencies for QT:

Debian | apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 -- | --

as indicated at https://docs.anaconda.com/anaconda/install/linux/ :)

like image 111
user1705452 Avatar answered Oct 19 '22 01:10

user1705452


I had a similar '[SpyderKernelApp] WARNING | No such comm: ...' error recently running Spyder through Anaconda. Although I'm on Ubuntu 18.04.4 LTS.

In Spyder, try going to Preferences -> IPython Console -> Graphics and switch the graphics backend from 'Automatic' to 'Inline'. This resolved the issue for me.

like image 40
psweens Avatar answered Oct 19 '22 01:10

psweens


This problem:

Restarting kernel...

[SpyderKernelApp] WARNING | No such comm: bb97cb82a1fc11eba21c1e00a221a680

you didn't have enough resource ( generally: Memory (RAM) )

check the memory image

  • you should upgrade your resource ( you can use VM )

or

  • run your code and try to check "Variable explorer" in your IDE like spyder you will find all variables, then remove the largest size after you finish it or save it.

remove your variable image

You can check your memory by using Activity Monitor to monitor your memory, CPU,...

like image 1
Almadani Avatar answered Oct 19 '22 01:10

Almadani