Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
ipython 5.1 sporadically freezes when matplotlib plots are active #10201
I've using ipython 5.1 with matplotlib 1.5.1 with the Qt4Agg backend on Mac OS X 10.9.5. There have now been 3 occasions when the ipython terminal froze entirely - it would not accept control-c, control-z, or any command I tried. Quitting the Qt plot windows re-activated the python terminal.
This so far has not affected me the first or second time I've made a plot window, but eventually it seems to affect every ipython session I've started with a plot window.
I upgraded to matplotlib 2.0, and the same thing happened, but this time (now with Qt5Agg as a backend), I get a message:
After that notification, the entire terminal containing ipython became unresponsive. I think the same message was issued under ipython + matplotlib 1.5.1, but the message only appeared after closing ipython entirely, i.e.:
The code handling Qt event loop integration in terminal IPython lives here:
I don't understand what might be going wrong, though.
Where does the
I wonder if there is a race condition between triggering the
The story here would be things fail when:
From work with asyncio I have the general impression that
I suspect that the fix will be to notice when constructing the notifier fails and not starting the event loop. It might also make sense to also hook up a timer that kills the event loop after ~0.1s?