I'm using the Jupyter notebook for python 2 to write code. I change the backend of matplotlib in one notebook with the following code and get a GUI.
import matplotlib
matplotlib.use('TkAgg')
When I create a new notebook with Jupyter, every time I plot a graph, a get a pop-up window. What do I need to do to get a the plotted graph within the notebook? I tried the following backend arguments:
matplotlib.use('Agg'/GTKAgg/Qt4Agg/WXAgg)
Here's my code of plot a graph:
import matplotlib
matplotlib.use('GTKAgg')
import matplotlib.pyplot as plt
import pandas as pd
dataframe = pd.DataFrame('ex0.csv')
dataframe.plot()
plt.show()