-
Notifications
You must be signed in to change notification settings - Fork 5k
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
%matplotlib qt5
freezes notebook execution
#2025
Comments
%matplotlib qt5
freezes notebook execution
Ping @Carreau |
Yeah, I think we have seen this one before. The problem is we have no clue why. It's really complex to debug, and none of us a Qt5 experts. I'll add that on my loong todo list. |
I have a similar problem where if I use %pylab with qt5 freezes when I restart and run all. The plot is displayed when I do a reconnect. Any form of run all with qt5 freezes. I have tried it with %matplotlib and the same problem persists. When I reconnect though the plot is displayed, the cells are not numbered and still have *. There are no problems when I use something else like tk though. |
Does anybody know the solution of this problem? I have the same issue. When I try to execute simple plot:
but when I try work even with simple window:
it freezes the notebook irreversibly. |
This is also an issue in VS Code. See also the same issue described here: ipython/ipython#5629 |
Just wanted to chime in with -- I have been experiencing this in Windows for years. When I use Markdown cells run fine, and I can edit/delete other cells. It is only the Python interpreter that seems to be locked when in qt mode. You can imagine presentations/demos are fun 😅 I'm not sure if this is a Matplotlib or Jupyter or zmq or Qt thing (all of the above?), but it would be amazing if we could figure this out (maybe let's get together at Scipy and figure it out -- it's that easy right? 😄). Note I haven't actually tested this thoroughly in non-Windows OS. I easily could. Edit: I'm on Windows 10 and using notebook 6.5.4 and waiting on this to be fixed: bokeh/jupyter_bokeh#195 So maybe with notebook 7 this will no longer be an issue? Will report back once all that is figured out. |
After updating to Python 3.6 and PyQt 5.7.1, when I use magic
%matplotlib qt5
andRestart & Run All
button the execution freezes after cell with%matplotlib qt5
. (When I evaluate notebook cell by cell it works OK as expected)The problem relates only to qt5 backend (PyQt 5.7.1).
When I set up
c.InteractiveShellApp.matplotlib = 'qt5'
in IPython config file,%matplotlib qt5
works OK. When I commented it again execution freezes. Code to play with:Also for all related buttons
Run All
,Run All Below
the behavior is the same after kernel restart.Python 3.6
IPython 5.1.0
ipykernel 4.5.2
notebook 4.3.1
PyQt5 5.7.1
Windows 10
The text was updated successfully, but these errors were encountered: