slider increment
Is there a way to get the ui slider to go from 0 - 1 with decimal point/probability values? I tried with denoting the start and stop as 0.0 and 1.0 and making steps=100 but didn’t get anywhere
3 Replies
You can set the increment with
step
. For example, this gets you a slider with [0, 0.1, 0.2, ..., 1.0] as the possible values: s = mo.ui.slider(start=0, stop=1, step=0.1)
ah ok I see
I was thinking steps as number of ticks in between start and stop
Ah I see, I suppose that would be more similar to what
numpy
does