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.
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:
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.
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:
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.