I\'d like to have a batch file in one folder with a python script. The batch file should call the script in IPython and plot the figures inline / embed
Greg answered it here:
Start ipython qtconsole as interactive interpreter after script execution
It works using the -m flag
ipython qtconsole --matplotlib inline -m example_plots
or
ipython qtconsole --pylab inline -m example_plots
But I do not know, what makes the difference between those two options pylab inline and matplotlib inline. From here I figure, that I'd rather use --matplotlib inline
Even adding the file ending it does what I want to, but it complains about unknown failure after execution.
pyplot.show(block=True) will give and unknown failure, too
How to run a python script with IPython, showing plots embedded?
ipython qtconsole <yourscript.py>.jupyter qtconsole <yourscript.py>Do I need to use pylab or can I just import matplotlib.pyplot in the script?
%matplotlib inline prior to importing matplotlib.pyplot.Is %pylab inline / %matplotlib inline to be used or not?
%matplotlib inline.