TkAgg as backend.
import matplotlib matplotlib.use('TkAgg') #https://stackoverflow.com/questions/37365357/when-i-use-matplotlib-in-jupyter-notebook-it-always-raise-matplotlib-is-curren