matplotlib widget occasionally fails to render.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- jupyter, matplotlib, python
- Domain
- data-visualization, frontend
Research direction
Start by running the provided reproduction with the ipympl backend in JupyterLab 2.0.2 and the reported environment. Investigate why the widget intermittently fails to render, using the expected result of two empty subplots as the completion criterion. No source file or test is identified in the issue, so locating the relevant rendering code and adding coverage will require project research.
Written by the indexing model from the issue text.
Description
Bug report
Bug summary
Matplotlib widget occasionally fails to render.
Code for reproduction
%matplotlib widget
from matplotlib import pyplot
fig, axes = pyplot.subplots(1, 2, figsize=(8, 4))
pyplot.show()
raise
Actual outcome

Expected outcome
Two empty subplots.
Matplotlib version
- Operating system: some sort of linux running docker running jupyterlab
- Matplotlib version: 3.2.1
- Matplotlib backend (
print(matplotlib.get_backend())): module://ipympl.backend_nbagg - Python version: 3.8.2
- Jupyter version (if applicable): jupyterlab 2.0.2
- Other libraries:
- Dominant language
- Jupyter Notebook
- Stars
- 1.7k
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matplotlib/ipympl
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
matplotlib/ipympl#623 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
matplotlib/ipympl#622 · 13 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
matplotlib/ipympl#612 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
matplotlib/ipympl#611 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
matplotlib/ipympl#609 · 7 comments ·
All issues in matplotlib/ipympl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
pydata/pydata-sphinx-theme#2503 ·
-
bug triage_needed
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
P3 size: 1 task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
🦾 ai-candidate
Difficulty 2/5 1-3 hours Newbie friendliness 88/100