matplotlib / matplotlib/ipympl

fig.canvas displays in all ipywidgets.Tab tabs

Open
#126 3 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

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.
![tab_display_error](https://user-images.githubusercontent.com/2158653/61275426-cc6f7180-a762-11e9-9290-f8f842cbfa36.PNG)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.