The kernel appears to have died. It will restart automatically


Need some help. i’m stuck with the message of "The kernel appears to have died. It will restart automatically.’ when i run the following code on jupyter notebook (on my fast ai machine). I’m using papersource fast ai machine… can someone please help if you have faced similar issue in the past.

from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
import keras.backend as K

1 Like

I read somewhere that I may need to uninstall the tensorflow to fix the issue and ran the following command to make it work. Thanks.

pip install tensorflow==1.5


Thanks, It helps me with additional upgrading numpy module
pip install --upgrade numpy
(I’m using paperspace )
p.s. Also further in lesson3 it was explained , that following line would be enough to solve this issue:
pip install tensorflow-gpu keras

1 Like

Worked thanks!


This for my case was due to numpy installation.
I used the following command in the anaconda and updated the numpy and the problem fixed.

pip install –U numpy