Open YongcaiHuang opened 2 months ago
current interaction can pass a tuple (min, max, step), but without init-value can be set. The current solution is only to create an instance of FloatSlider/IntSlider with value passed, but it requires more codes.
(min, max, step)
FloatSlider/IntSlider
value
@interact(val=(0, 100, 5)) def example(val): print(f"{val:.2f}")
ideal
@interact(val=(0, 100, 5, 20)) # one more value to set init value def example(val): print(f"{val:.2f}")
current interaction can pass a tuple
(min, max, step)
, but without init-value can be set. The current solution is only to create an instance ofFloatSlider/IntSlider
withvalue
passed, but it requires more codes.ideal