Skip to content

Tab widget not properly showing children #41

@sntgluca

Description

@sntgluca

Hi, when using ipywidgets.Tab, all the children objects are shown in all the tabs spaces.
This example works well in a notebook, but not via ipywidgets-server

#!/usr/bin/env python

import ipywidgets as w

text1 = w.Text(description='Text 1')
text2 = w.Text(description='Text 2')
text3 = w.Text(description='Text 3')

tab = w.Tab([text1, text2, text3])
for i, v in enumerate(tab.children):
    tab.set_title(i, v.description)

May you take a look?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions