question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Tensorflow Backend and Kernel died, restarting

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I just write “from keras.models import MinMaxScaler” and the console says “Using TensorFlow backend. Kernel died, restarting”

What steps reproduce the problem?

  1. try to run the python file with only one piece of command

What is the expected output? What do you see instead?

there should be no output but the kernel died

Paste Traceback/Error Below (if applicable)


runfile('C:/Users/Charles/.spyder-py3/temp.py', wdir='C:/Users/Charles/.spyder-py3')
Using TensorFlow backend.

Kernel died, restarting


 Populating the interactive namespace from numpy and matplotlib


runfile('C:/Users/xxx/.spyder-py3/temp.py', wdir='C:/Users/xxx/.spyder-py3')
Using TensorFlow backend.

Kernel died, restarting

Versions

  • Spyder version: 3.2.3
  • Python version: 3.6.2
  • Qt version: 5.6.2
  • PyQt version: 5.6.0
  • Operating System name/version: Windows 10

Dependencies

IPython >=4.0    :  6.1.0 (OK)
cython >=0.21    :  None (NOK)
jedi >=0.9.0     :  0.10.2 (OK)
nbconvert >=4.0  :  5.2.1 (OK)
numpy >=1.7      :  1.13.1 (OK)
pandas >=0.13.1  :  0.20.3 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.7.2 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
sphinx >=0.6.6   :  1.6.3 (OK)
sympy >=0.7.3    :  None (NOK)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
Coerchancommented, Mar 20, 2019

is that any approach can solve this problem except lower 3.6 to 3.5?

0reactions
JebasWinston10commented, Apr 25, 2022

No. I have change the python version from 3.6 to 3.5, and the problem has disappeared. I do not know the reason.

My code still doesn’t run even after lowering the version to 3.5. Help me if you found any solution for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

M1 tensorflow - kernel appears to have died. It will restart ...
hi all, when i download the Mac-optimized TensorFlow, it showed the jupyter 'kernel appears to have died. It will restart automatically' ...
Read more >
Python kernel dies on Jupyter Notebook with tensorflow 2
in your terminal(shell). Restart your kernel in jupyter notebook.this should work. 3.Reinstall numpy (if needed) If you encounter any problem in ...
Read more >
The kernel appears to have died | Data Science and ... - Kaggle
The problem arises in the loop over training epochs. TensorFlow is set up to load the OpenMP library multiple times, which will cause...
Read more >
Kernel Died error post installing tensorflow - Apple Developer
I m facing huge problem with Jupyter notebook post installing tensorflow as the kernel keeps dying and I have literally tried solution in...
Read more >
The kernel appears to have died. It will restart automatically
Hi,. Need some help. i'm stuck with the message of "The kernel appears to have died. It will restart automatically.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found