I have this problem where everytime I run a script in Python that contains a function, it just crashes and restarts a completely new kernel. The IPython Window then also shows Restarting kernel...
I already tried to uninstall and re-install Anaconda and Spyder. I also followed the steps provided in this post:
cannot update spyder=5.1.5 on new anaconda install
After another uninstall and re-install, Spyder (4.2.5) works for a little while. However, after updating anaconda again (conda update anaconda
) it throws the following error:
AttributeError: 'SpyderKernelManager' object has no attribute 'kernel'
How to prevent the creation of a new kernel and obtain the output?
Github issue: https://github.com/spyder-ide/spyder/issues/16668
CodePudding user response:
Possible solution: The problem seems to be with the newest matplotlib
function (3.4.3), when I downgraded matplotlib to 3.3.4 again the kernel problem no longer occured.