I use IPython notebooks with matplotlib.pyplot and I often create a plot that requires a fairly large block of code to generate. I would then like to save the object and use
Just call myFigure in any cell after myFigure was assigned in cell before.
myFigure
For example in cell 1:
In [1]: myFigure, myAx = plt.subplots() myAx.plot([1,2,3])
In cell after that:
In [2]: myFigure
This will show myFigure