import ipywidgets as ipw
from ase.build import molecule
from weas_widget import WeasWidget
tab_contents = ['H2O', 'NH3', 'CH4']
children = [WeasWidget(from_ase=molecule(name)) for name in tab_contents]
tab = ipw.Tab()
tab.children = children
tab.titles = [str(i) for i in range(len(children))]
tab
https://github.com/superstar54/weas-widget/assets/11457659/25763deb-2434-4c0d-9d4a-c22a8328833c