Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Repeated "Kernel died, restarting" forever

When I attempt to run

$ jupyter qtconsole

The console shows up, with the message

Kernel died, restarting
________________________
Kernel died, restarting
________________________
Kernel died, restarting
________________________
Kernel died, restarting
________________________
Kernel died, restarting
________________________

Which continues.

Trying $ jupyter qtconsole --debug didn't print anything else, and neither has adding

c.Application.log_level = 0
c.Session.debug = True

into $USERHOME/.jupyter/jupyter_qtconsole_config.py

Also, I found nothing in $USERHOME/.ipython/profile_default/log/ and the other directories around there.

Nothing has changed in my configuration since last time I started up jupyter-qtconsole.

How can I at least find out what's going wrong with the kernel? Surely there is some option in Jupyter to get the kernel's STDERR output to see what exception had upset it?

like image 207
Evgeni Sergeev Avatar asked Sep 23 '16 05:09

Evgeni Sergeev


People also ask

Why do I keep getting a dead kernel in Jupyter notebook?

A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python are two different software entirely. So, a kernel error occurs when Jupyter fails to connect with a specific version of Python.

How do you handle a dead kernel?

You can also go to "File" > "Close and Halt" within Jupyter if you still have the notebook open on your screen. Once you've closed the other notebooks, you can restart your dead kernel by going to "Kernel" > "Restart" within Jupyter.

What does restarting kernel mean?

Restarting your kernel will reset your Jupyter notebook and remove all variables or methods you have defined. You will not lose the code written by you. Just that, you have to run all the code cell again to set the variables and methods.

What does dead kernel mean?

The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.


2 Answers

I run

spyder --show-console

when I receive in spyder

Kernel died, restarting

I see message in console

Intel MKL FATAL ERROR: Cannot load libmkl_p4m.so or libmkl_p4.so.

It was helpfull for me

conda install nomkl numpy scipy scikit-learn numexpr
conda remove mkl mkl-service
like image 169
Ivan D. Avatar answered Sep 26 '22 12:09

Ivan D.


Run this-

conda remove ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils

conda clean -tipsy

conda install ipykernel ipython jupyter_client jupyter_core traitlets ipython_genutils

jupyter notebook
like image 31
ketankk Avatar answered Sep 25 '22 12:09

ketankk