I created a Tab widget which contains different ToggleButtons widgets, representing different sub-options for the option defined by the tab.
children = [widgets.ToggleButtons( options = suboptions[idx]) for idx in suboptions] tab = widgets.Tab() tab.children = children for i in range(len(children)): tab.set_title(i, 'Option' + str(i)) tab
I would like to use the sub-option selected by the user to update a Scatter Plot I created in Plotly and I was trying to do this using
interactive. For instance:
def f(x): print(x) w = interactive(f, x = tab) display(w)
However I get the following error:
Is there a way to retrieve the user selection (so specific Option/Suboption) with
Thanks in advance for your help