Slider with power of two

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