matplotlib / matplotlib/ipympl

matplotlib widget occasionally fails to render.

Open
#231 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

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

Screenshot

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:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

Tech stack
jupyter, matplotlib, python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.