matplotlib / matplotlib/ipympl

matplotlib widget occasionally fails to render.

Open
#231 6 comments 1 reaction 0 assignees View on GitHub
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**

```python
%matplotlib widget
from matplotlib import pyplot
fig, axes = pyplot.subplots(1, 2, figsize=(8, 4))
pyplot.show()
raise
```

**Actual outcome**

![Screenshot](https://user-images.githubusercontent.com/14786764/82331385-57a13f80-99e4-11ea-8ad2-7ccb778ed696.png)

**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

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.