In [ ]:
%pylab notebook
#import matplotlib as mpl
#mpl.use('GTKAgg')
import matplotlib.pyplot as plt
In [ ]:
plt.plot([1,8,2,4])
#plt.show()
In [ ]:
# How to query for interactive mode (to see if the plot will update for each new cell executed?
# When interactive mode is off, plots won't update when you change cells
# You will have to do plt.show() or plt.draw()
import matplotlib as mpl
mpl.rcParams['interactive']
In [ ]:
#ioff()
ion()
In [ ]:
mpl.rcParams['interactive']
In [ ]:
isinteractive()
In [ ]: