SpyderKernelApp WARNING No such comm

扶醉桌前 提交于 2021-01-03 07:01:31

问题


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?


回答1:


The other issue I came across after installing the above - I did not have enough memory for my data and it started failing again. Upping the accessible memory in the VM fixed this.




回答2:


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.




回答3:


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/ :)



来源:https://stackoverflow.com/questions/62980313/spyderkernelapp-warning-no-such-comm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!