Python: provide some data (matplotlib) without GIL
My problem is of course the GIL. While I'm parsing the data, it would be nice to present some graphs in between (so it's not too boring while waiting for the results)
But the GIL prevents this (and this leads me to ask myself if Python was really such a good idea).
I can only display the plot, wait for the user to close it and start calculating after that. Obviously a waste of time.
I've already tried subprocess and multiprocessing modules but can't seem to get them to work.
Any thoughts on this? Thanks to
Edit: Ok, so this is not the GIL but show ().
a source to share
This is not a problem with matplotlib or the GIL.
In matplotlib, you can open up as many numbers as you want and have them on screen while your application continues to do other things.
You have to use matplotlib interactively. This is probably your problem.
from matplotlib import interactive
interactive(True)
this should be at the top of your import
a source to share