The example of the Play (animation) widget goes like this:
play = widgets.Play(
value=50,
min=0,
max=100,
step=1,
interval=500,
description="Press play",
disabled=False
)
slider = widgets.IntSlider()
widgets.jslink((play, 'value'), (slider, 'value'))
widgets.HBox([play, slider])
In my case, I want to link the Play
widget to a FloatSlider
instead, like this:
play = widgets.Play(
value=0.05,
min=0,
max=0.1,
step=0.01,
interval=500,
description="Press play",
disabled=False
)
slider = widgets.FloatSlider(
value=0.05,
min=0,
max=0.1,
step=0.01,
)
widgets.jslink((play, 'value'), (slider, 'value'))
widgets.HBox([play, slider])
However, this does not work. Is there a way to make it work? Thanks!