What version of Bokeh are you using? There were changes to decimal-point handling for Bokeh spinners in https://github.com/bokeh/bokeh/pull/9355 that I think are included in bokeh 1.4 but not earlier versions.
I am using bokeh 1.4 with panel 0.8 in a python 3.8.1 environment on macOS.
import panel as pn
g = pn.widgets.Spinner(name="g", value=9.81)
@pn.depends(g)
def show_widget_value(g):
return g
example = pn.Column(g, show_widget_value)
pn.serve(example)
If i change the value in the spinner widget and hit enter it is changed (rounds up) to an even 10. Even if the initial value was already a float number.
If i then add a step=0.01 to the widget it works for the given step. But i want, for example, calculate one time with tow digits after the decimal point and another time with 13 ore more digits.
The spinner is nice, but doesn’t seem suitable to enter any numerical value with an undefined number of digits.
@philippjfr I’m not sure the mention bug (concerning the step accuracy) will fix the problem. When I type in a decimal number into the spinner widget, for example 9,812 and hit enter, the widget is showing an even 10.