Kernel appears to have died - Jupyter notebook python matplotlib

Viewed 5545

I am trying to learn charting in Python and keep getting this message in Jupyter:

The kernel appears to have died. It will restart automatically.

My other basic programs are working, so it looks like using Matplotlib is causing this problem. Any thoughts on how to resolve this?

import matplotlib.pyplot as plt

plt.plot()
plt.show()

Screenshot of message I am getting

3 Answers

if you don't solve the problem after using method above, you can try this:

import os    
os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'

add two lines of codes in your python code. This mothed is also useful to pycharm.

I try the solution of this video, based on this post, and it worked for me:

  • Run Anaconda Prompt as administrator
  • conda install --yes freetype=2.10.4

I did the following :

conda install --yes freetype=2.10.4

it works. Great!

Related