Is it possible to run a Python code which generates a figure (or figures) and keep these figures open, even after the program ends?
Currently, when I use show()
at the end of my code, the program execution $ python somecode.py
halts until I close the figure (or figures). Thereby making the terminal unusable.
Do I need to some how assign a different job id for each figure, so that the figures are running separately from the main program ? If so how can I accomplish that ?
This need becomes apparent when one wants to execute a program limited amount of times, with different input, and without wanting to store each resulting figure as a (separate) file. This is handy for making quick comparisons.
An obvious solution is to run the program in separate terminal sessions.