ipywidgets_server
ipywidgets_server copied to clipboard
Tab widget not properly showing children
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!