matplotlib / matplotlib/ipympl
fig.canvas displays in all ipywidgets.Tab tabs
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 1.7k
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
In the latest version (0.3.3) a fig.canvas does not display correctly in ipywidgets.Tab. Notional example:
```
tab = widgets.Tab()
tab.children = [fig1.canvas, fig2.canvas]
tab
```
The figures appear in both tabs. Not expected and this used to work in previous version (0.2.1). Please also see picture.

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.
Research direction
Start with the minimal ipywidgets.Tab example in the issue, using two fig.canvas children, and compare it with the behavior reported for version 0.2.1. Investigate how the tab display handles canvas visibility in version 0.3.3. Done means each figure appears only in its own tab, with the regression covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter, jupyter-notebook
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100