from ipywidgets import (Checkbox, Dropdown, FloatSlider,
IntSlider, Text, interact)
cb = Checkbox(True, description='例1')
dd = Dropdown(options=[1, 2, 3], value=3, description='例2')
fs = FloatSlider(100, min=0, max=500, step=100, description='例3')
tx = Text('123', description='例4')
@interact(cb=cb, dd=dd, fs=fs, tx=tx)
def sine_curve(cb, dd, fs, tx):
print(cb, dd, fs, tx)
コメント