Bokeh 0.12.4. RangeSlider value(s)?

How do I obtain the value for RangeSlider implemented in bokeh 0.12.4?

I tried looking in dir(RangeSlider) and compared it to dir(Slider), but it seems that slider has the attribute ‘value’ whereas rangeslider does not. However, thats the only difference I can see…

I also wonder why something like this does not seem to be part of the documentation, while it seems kinda important to me.

btw thanks for implementing the rangeslider :slight_smile:

Hi,

How do I obtain the value for RangeSlider implemented in bokeh 0.12.4?

I tried looking in dir(RangeSlider) and compared it to dir(Slider), but it seems that slider has the attribute 'value' whereas rangeslider does not. However, thats the only difference I can see...

There are many models, each with many properties. It's certainly difficult for me to eyeball any differences, so I usually ask python directly:

  In [4]: set(dir(RangeSlider)) - set(dir(Slider))
  Out[4]: {'range'}

The reference documentation is also probably the best source for answering questions about properties on Bokeh models:

  http://bokeh.pydata.org/en/latest/docs/reference/models/widgets.inputs.html#bokeh.models.widgets.inputs.RangeSlider

Looking at that, I believe that "range" is indeed the property you are looking for.

I also wonder why something like this does not seem to be part of the documentation, while it seems kinda important to me.

It's always the same reason: there are only so many hours in each day. The only way to increase the rate of contribution is to increase the number of contributors.

FWIW every property on every model has at least some minimal documentation in the reference guide, although I am sure the help strings could be expanded or improved in many cases, or augmented with real example code. Any of these things would be welcome and appreciated contributions.

btw thanks for implementing the rangeslider :slight_smile:

Thanks for the kind words,

Bryan

Hi Joris,

I think what you are after is start and end instead of value?

http://bokeh.pydata.org/en/latest/docs/user_guide/interaction/widgets.html#rangeslider

http://bokeh.pydata.org/en/latest/docs/reference/models/widgets.inputs.html

Best wishes,

Tommy

···

On Friday, 13 January 2017 16:46:49 UTC, Bryan Van de ven wrote:

Hi,

How do I obtain the value for RangeSlider implemented in bokeh 0.12.4?

I tried looking in dir(RangeSlider) and compared it to dir(Slider), but it seems that slider has the attribute ‘value’ whereas rangeslider does not. However, thats the only difference I can see…

There are many models, each with many properties. It’s certainly difficult for me to eyeball any differences, so I usually ask python directly:

    In [4]: set(dir(RangeSlider)) - set(dir(Slider))

    Out[4]: {'range'}

The reference documentation is also probably the best source for answering questions about properties on Bokeh models:

    [http://bokeh.pydata.org/en/latest/docs/reference/models/widgets.inputs.html#bokeh.models.widgets.inputs.RangeSlider](http://bokeh.pydata.org/en/latest/docs/reference/models/widgets.inputs.html#bokeh.models.widgets.inputs.RangeSlider)

Looking at that, I believe that “range” is indeed the property you are looking for.

I also wonder why something like this does not seem to be part of the documentation, while it seems kinda important to me.

It’s always the same reason: there are only so many hours in each day. The only way to increase the rate of contribution is to increase the number of contributors.

FWIW every property on every model has at least some minimal documentation in the reference guide, although I am sure the help strings could be expanded or improved in many cases, or augmented with real example code. Any of these things would be welcome and appreciated contributions.

btw thanks for implementing the rangeslider :slight_smile:

Thanks for the kind words,

Bryan