When I run my code from the shell command line, it opens the figure window and displays the plot but as soon as the code is completed it closes it. I do not have any close() statements.
How can I prevent figures from closing when running a python script from the command line with ipython?
I could add a statement at the end to quit only after pressing any key, but that feels too much like a hack.
In [n]: run scriptor on the shell command line using ipython, as in$ ipython script.py?