"step" attribute for Slider widget

Hello!
When I modify the “slider_app” example provided by adding a “step=0.5” attribute to the slider, I obtain the following error message:

ValueError: expected a value of type int8, int16, int32, int64, int or long, got 0.5 of type float

If I use “step=1”, everything works as expected. Any ideas why this is…?

Thanks for your help,

Max

PS: My bokeh/python versions are

···

python version : 2.7.9
bokeh version : 0.6.1

Max,

This is a bug, I have submitted a pull request that fixes it here:

  https://github.com/bokeh/bokeh/pull/1681

This fix will not make it into tomorrow's 0.7.1 release, but it will be in the next dev build we release on binstar.org (probably in about a week), as well as in the 0.8 release in mid-February. If you would like to try it even sooner, the instructions for installing from source are here:

  http://bokeh.pydata.org/en/latest/docs/dev_guide.html#installation-for-developers

Thanks for the report,

Bryan

···

On Jan 7, 2015, at 4:35 AM, Max <[email protected]> wrote:

Hello!
When I modify the "slider_app" example provided by adding a "step=0.5" attribute to the slider, I obtain the following error message:
ValueError: expected a value of type int8, int16, int32, int64, int or long, got 0.5 of type float

If I use "step=1", everything works as expected. Any ideas why this is...?

Thanks for your help,
Max

PS: My bokeh/python versions are
python version : 2.7.9
bokeh version : 0.6.1

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/057af2c7-4c97-4a04-a898-fa41e68652ce%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.