Tabs figure getter


I have a function which returns a Tabs (with 2 panels)

panel1 = Panel(child=fig1, title='log')
panel2 = Panel(child=fig2, title='linear')
tabs = Tabs(tabs=panels)

Is there a way to retrieve fig1 & fig2 from the tabs element ? :face_with_monocle:
So far I have implemented a figure getter but I am wondering if it is really necessary…

Something like

ought to work.

But fair warning the select, select_one APIs are barely used since ~10 years. There are tests for them but you know there might be bugs too.

All that said, in my personal experience it’s usually simplest to just give variable names to the things you want to keep track of, so that you don’t have to look them up at all.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.