ipywidgets_server icon indicating copy to clipboard operation
ipywidgets_server copied to clipboard

Tab widget not properly showing children

Open sntgluca opened this issue 7 years ago • 0 comments

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!

sntgluca avatar Jun 08 '18 13:06 sntgluca