from IPython.html import widgets
[w for w in dir(widgets) if w.endswith('Widget')]
widgets.FloatSliderWidget(
value=7.5,
min=5.0,
max=10.0,
step=0.1,
description='Test:',
)
widgets.FloatSliderWidget(
value=7.5,
min=5.0,
max=10.0,
step=0.1,
description='Test',
orientation='vertical',
)
widgets.FloatProgressWidget(
value=7.5,
min=5.0,
max=10.0,
step=0.1,
description='Loading:',
)
widgets.BoundedFloatTextWidget(
value=7.5,
min=5.0,
max=10.0,
description='Text:',
)
widgets.FloatTextWidget(
value=7.5,
description='Any:',
)
widgets.ToggleButtonWidget(
description='Click me',
value=False,
)
widgets.CheckboxWidget(
description='Check me',
value=True,
)
from IPython.display import display
w = widgets.DropdownWidget(
values=[1, 2, 3],
value=2,
description='Number:',
)
display(w)
w.value
w = widgets.DropdownWidget(
values={'One': 1, 'Two': 2, 'Three': 3},
value=2,
description='Number:',
)
display(w)
w.value
widgets.RadioButtonsWidget(
description='Pizza topping:',
values=['pepperoni', 'pineapple', 'anchovies'],
)
widgets.SelectWidget(
description='OS:',
values=['Linux', 'Windows', 'OSX'],
)
widgets.ToggleButtonsWidget(
description='Speed:',
values=['Slow', 'Regular', 'Fast'],
)
widgets.TextWidget(
description='String:',
value='Hello World',
)
widgets.TextareaWidget(
description='String:',
value='Hello World',
)
widgets.LatexWidget(
value="$$\\frac{n!}{k!(n-k)!} = \\binom{n}{k}$$",
)
widgets.HTMLWidget(
value="Hello World"
)
widgets.ButtonWidget(description='Click me')