asyncio.sleep hangs with matplotlib qt5
Open
- Dominant language
- Jupyter Notebook
- Stars
- 13.3k
- Forks
- 5.8k
- Avg merge
- 6d 11h
- Merged PRs (30d)
- 7
Description
This cell will not finish
``` python
%matplotlib qt5
import asyncio
await asyncio.sleep(1)
print("done")
```
Except if the other cell is run:
``` python
import matplotlib.pyplot as plt
plt.figure()
```
Contributor guide
Research direction
Reproduce the two notebook cells shown in the issue, first with the Qt5 backend and then after creating a figure. Trace the interaction between asyncio.sleep and the matplotlib Qt5 integration; done means the first cell completes and prints "done" without requiring the second cell.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, matplotlib, python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100