bokeh.models.widgets.sliders¶
Various kinds of slider widgets.
-
class
AbstractSlider(**kwargs)[source]¶ Bases:
bokeh.models.widgets.widget.WidgetNote
This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.
-
callback¶ property type:
Instance(Callback)A callback to run in the browser whenever the current Slider value changes.
-
callback_policy¶ property type:
Enum(SliderCallbackPolicy)When the callback is initiated. This parameter can take on only one of three options:
- “continuous”: the callback will be executed immediately for each movement of the slider
- “throttle”: the callback will be executed at most every
callback_throttlemilliseconds. - “mouseup”: the callback will be executed only once when the slider is released.
The “mouseup” policy is intended for scenarios in which the callback is expensive in time.
-
callback_throttle¶ property type:
FloatNumber of millseconds to pause between callback calls as the slider is moved.
-
-
class
DateRangeSlider(**kwargs)[source]¶ Bases:
bokeh.models.widgets.sliders.AbstractSliderSlider-based date range selection widget.
-
value_as_datetime¶ Convenience property to retrieve the value tuple as a tuple of datetime objects.
-
-
class
DateSlider(**kwargs)[source]¶ Bases:
bokeh.models.widgets.sliders.AbstractSliderSlider-based date selection widget.
-
class
RangeSlider(**kwargs)[source]¶ Bases:
bokeh.models.widgets.sliders.AbstractSliderRange-slider based number range selection widget.
-
class
Slider(**kwargs)[source]¶ Bases:
bokeh.models.widgets.sliders.AbstractSliderSlider-based number selection widget.