Skip to content
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

Kernel crashes when plotting with block=True #560

Open
wmvanvliet opened this issue Oct 12, 2022 · 1 comment
Open

Kernel crashes when plotting with block=True #560

wmvanvliet opened this issue Oct 12, 2022 · 1 comment

Comments

@wmvanvliet
Copy link
Contributor

This snippet of code will crash QtConsole:

%matplotlib qt
from matplotlib import pyplot as plt
plt.plot([1, 2, 3, 4])
plt.show(block=True)

The block=True probably interacts badly with the Qt thread spawned by the %matplotlib qt magic. However, this does seem to be a QtConsole issue, as this works fine in a terminal ipython console.

@ccordoba12
Copy link
Collaborator

What happens when running that code in jupyter console or JupyterLab? The thing is terminal IPython and Qtconsole/JupyterLab/Jupyter console use different ways to declare event loops, so they can't be compared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants