Slider with power of two

Hi, Iโ€™d like to have a slider defined with upper and lower value (say 8 and 2048) and the only feasible steps are from a power of 2 to another.
Is it possible?

I actually found a way to do it, using the select_slider as follow:
st.sidebar.select_slider(โ€œSelect valueโ€, options=[2 ** j for j in range(4, 12)])

1 Like