LoginSignup
2
1

More than 5 years have passed since last update.

ipywidgetsのタブにタイトルをつける

Posted at

ドキュメントのどこを探しても、Google先生にきいても見つからなかったので備忘録。

from ipywidgets import Text, Tab

list = ['P0', 'P1', 'P2']
titles = {0:'P0', 1:'P1', 2:'P2'}
children = [Text(description=name) for name in list]
tab = Tab(children=children, _titles=titles)
tab

613a242d-19dd-4f01-abd6-186d7dd5e49a.png

2
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1