Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fig.canvas displays in all ipywidgets.Tab tabs

Open
#126 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter, jupyter-notebook
Domain
frontend

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.

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

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

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.

More from matplotlib/ipympl

All issues in matplotlib/ipympl

Similar issues

More Web Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.