I tried to use the matplotlib package via Pycharm IDE on windows 10. when I run this code:
from matplotlib import pyplot
I get the followin
you can use
import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt
if you dont want to use tkinter at all.
tkinter
Also dont forget to use %matplotlib inline at the top of your notebook if using one.
%matplotlib inline
EDIT: agg is a different backend like tkinter for matplotlib.
agg