Current, I get 3 separate windows with pyplot... which i don't want... i want to see all of my plots sequentially listed "inline" in a single web browser window similar to jupyter output except with my script running from a windows command line as an ipython script...
# File: plotit.ipy
# toy ipython plotting example
import numpy as np
import matplotlib.pyplot as plt
%matplotlib
t = np.linspace(0, 10, 100)
y1 = 5*t
y2 = -0.5*t
y3 = 2*t**2
# display as 1st inline graph in "jupyter web browser window"
plt.figure()
plt.plot(t,y1)
plt.show()
# display as 2nd inline graph in "jupyter web browser window"
plt.figure()
plt.plot(t,y2)
plt.show()
# display as 3rd inline graph in "jupyter web browser window"
plt.figure()
plt.plot(t,y3, '.')
plt.show()
This is how I run it from command line using ActiveState Python 3.6:
C:\> ipython
In [1]: %run testit.ipy
Using matplotlib backend: TkAgg
Is there's a way to convert a Jupiter document into a ipython script, and run it from the command line as one monolithic script, but still have the matplotlib plots show up "inline" in a jupyter output window sequentially as they are plotted while running the script. Example:
