-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Figure options with qt backend causes figure to freeze #22200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can reproduce this, and note that trying the same thing with an In qtconsole it make all Qt windows created later non-responsive to the mouse and keyboard. You can programtically add things or close it with My intuition here is that somehow the inputhook has been broken (which fits with "no event loop running when idle -> no mouse/keyborad") but that does not fit with resizing working. We are now using The above story makes sense why it works (but you can not type) in the IPython prompt (except for burning CPU) because the dialog window is running its event loop, the signal fires to tell the eventhook event loop to exit, it gets scheduled to be done as soon as the outer event loops gets to process the next event. It is not until that happens that the keys strokes make it to prompt toolkit and get echoed to screen. I do not know how the qtconsole's integration with Qt works off the top of my head so I am going to speculate a bit. Given that it launches an application, I assume that the QApplication is running its event loop (via Sorry for the very rambling comment, I'm thinking out loud. |
This is fixed by #22202 |
I can confirm #22202 fixes this issue for me. |
Closing this as #22202 seems to have fixed it for several persons (including me). |
Uh oh!
There was an error while loading. Please reload this page.
Bug summary
The figure options modal window causes the figure to freeze.
Similar to #18965.
Code for reproduction
jupyter qtconsole
Actual outcome
Figure is frozen.
Expected outcome
Figure is not frozen.
Additional information
I've tested in matplotlib 3.4.3 and 3.5.1
Operating system
macOS 11.6.2
Matplotlib Version
3.5.1
Matplotlib Backend
Qt5Agg
Python version
3.7.6
Jupyter version
Installation
conda
The text was updated successfully, but these errors were encountered: