What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expect a working kernel, instead get the repeating message:
Kernel died, restarting
Kernal died, restarting
Please provide any additional information below
Please go to the menu entry Help > Optional Dependencies
(or
Help > Dependencies
), press the button Copy to clipboard
and paste the contents below:
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.3 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 4.3.1 (OK)
pyflakes >=0.6.0 : 1.3.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.4.6 (OK)
sympy >=0.7.3 : 1.0 (OK)
Please start Spyder from a terminal, and paste the error messages shown there.
Hi @ccordoba12 , I am getting the same exact error. I just start Spyder and the kernel dies several times (about seven!) before being available. I use the latest Anaconda distrib on a windows 64bit machine
@ccordoba12 I am behind a firewall, and therefore I disabled the option to check for updates at startup. Also I just run spyder --reset
in the command line, restarted all over and the problem persists. All dependencies are OK as well. Could this be due to some network issue?
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.3 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.19.0 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.5.0 : 1.3.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.4.6 (OK)
sympy >=0.7.3 : 1.0 (OK)
Last, @ccordoba12 starting spyder via the terminal does nothing. I still see Kernel died, restarting...
6/7 times before actually seeing
Python 2.7.12 |Anaconda custom (64-bit)| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Note that the Kernel died, restarting...
lines have disappeared from the console at this point
@randomgambit, this is a duplicate of issue #3444, so I'm closing it. Please add further comments on that issue :-)
Kernel died, restarting can not use spyder at all this msg persist.
Initially has version 3.0.0 upgraded to 3.0.1.
Just trying to do some examples from theano tutorial
Please run Spyder from a terminal (i.e. cmd.exe on Windows) with this command
spyder --show-console
and post the errors you're seeing in the terminal.
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users**> spyder --show-console
There isn't anything in the console from the operating system. The errors only appear in the Console from spyder
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Kernel died, restarting
Kernel died, restarting
Kernel died, restarting
spyder --show-console
Starting Spyder from console just opens spyder and "Connecting to kernel" is displayed for long.. No messages in the terminal
im using Spyder 3 and Python 3.6 running on windows 7 ... and i have got the same error "Kernel died, restarting"
the problem was something related to Python. it was unable to run because of some windows feature need to be up to date "mainly Service Pack 1" ... i used that windows file update to solve the problem and it worked very well Windows6.1-KB2999226-x64
I had Anaconda 3.5 (32 bits) for a Win(64 bits) computer. It was working perfectly. At that time I was careful enough to download both 32 and 64 bit versions of Anaconda 3.5. Today I needed to install 64 bits version and updated to 3.6 from command window. I had then this problem of kernel dying. I deinstalled and reinstalled Anaconda 3.5 for 64 bits and Spyder works well without updating.
same error i got while importing tensorflow. i uninstalled anaconda and reinstall miniconda and then open jupyter. it resolved.
I'm having the similar problem when I run import tensorflow as tf
After downgrading to the tensorflow 1.5 version, it doesn't have this problem.
Try running:
pip uninstall tensorflow
And then
pip install tensorflow==1.5
this worked for me as well
I reinstalled Tensorflow using the below pip command and it started working for me.
pip install --ignore-installed --upgrade tensorflow-gpu
fyi, I am using the gpu version of tensorflow.
I have this same issue when any Qt window is opened. After the kernel restarts the window will run.
Anaconda 1.8.7
Spyder 3.2.8
Python 3.7
I have this same named issue Kernel died, restarting... but in my case it 's a memory overload that break the kernel.
Example: I try to display a very big image in the kernel.
import imageio
import matplotlib.pyplot as plt
im = imageio.mimread('image.tif')
plt.figure(figsize=(2048,2048)) #int this case, 2048 inch, it's a very big image!
plt.imshow(im[1])
-> Kernel died, restarting
I understand why the kernel die, but the console should return a message like memory overload.
IPython >=4.0 : 6.5.0 (OK)
cython >=0.21 : 0.28.5 (OK)
jedi >=0.9.0 : 0.12.1 (OK)
matplotlib >=2.0.0: 2.2.3 (OK)
nbconvert >=4.0 : 5.4.0 (OK)
numpy >=1.7 : 1.15.1 (OK)
pandas >=0.13.1 : 0.23.4 (OK)
pycodestyle >=2.3 : 2.4.0 (OK)
pyflakes >=0.6.0 : 2.0.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 2.1.1 (OK)
qtconsole >=4.2.0 : 4.4.1 (OK)
rope >=0.9.4 : 0.11.0 (OK)
sphinx >=0.6.6 : 1.7.9 (OK)
sympy >=0.7.3 : 1.2 (OK)
my spyder is not showing the layout.but it showing the options when we place the mouse on the menu and tools etc,its showing black window.please solve this. i am pasting the dependies
IPython >=4.0 : 6.5.0 (OK)
cython >=0.21 : 0.28.5 (OK)
jedi >=0.9.0 : 0.12.1 (OK)
matplotlib >=2.0.0: 2.2.3 (OK)
nbconvert >=4.0 : 5.4.0 (OK)
numpy >=1.7 : 1.15.1 (OK)
pandas >=0.13.1 : 0.23.4 (OK)
pycodestyle >=2.3 : 2.4.0 (OK)
pyflakes >=0.6.0 : 2.0.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 2.1.1 (OK)
qtconsole >=4.2.0 : 4.4.1 (OK)
rope >=0.9.4 : 0.11.0 (OK)
sphinx >=0.6.6 : 1.7.9 (OK)
sympy >=0.7.3 : 1.2 (OK)
IPython >=4.0 : 7.4.0 (OK)
cython >=0.21 : 0.29.6 (OK)
jedi >=0.9.0 : 0.13.3 (OK)
matplotlib >=2.0.0: 3.0.3 (OK)
nbconvert >=4.0 : 5.4.1 (OK)
numpy >=1.7 : 1.16.2 (OK)
pandas >=0.13.1 : 0.24.2 (OK)
psutil >=0.3 : 5.6.1 (OK)
pycodestyle >=2.3 : 2.5.0 (OK)
pyflakes >=0.6.0 : 2.1.1 (OK)
pygments >=2.0 : 2.3.1 (OK)
pylint >=0.25 : 2.3.1 (OK)
qtconsole >=4.2.0 : 4.4.3 (OK)
rope >=0.9.4 : 0.12.0 (OK)
sphinx >=0.6.6 : 1.8.5 (OK)
sympy >=0.7.3 : 1.3 (OK)
try whether there is any python file recently created has predefined keywords
for me creating a python file logging.py created the issue,
Kernel died, restarting...
Kernel died, restarting...
Kernel died, restarting...
Kernel died, restarting...
i changed filename to user_logging.py which resolved the issue for me
check whether you are overloading any predefined packages of python
Ran into a similar problem. Tried "Reset Spyder to factory defaults" and it solved my problem.
Most helpful comment
I'm having the similar problem when I run import tensorflow as tf
After downgrading to the tensorflow 1.5 version, it doesn't have this problem.
Try running:
pip uninstall tensorflow
And then
pip install tensorflow==1.5