Various kinds of slider widgets.
AbstractSlider
Bases: bokeh.models.widgets.widget.Widget
bokeh.models.widgets.widget.Widget
Note
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.
bar_color
property type: Color
Color
callback
property type: Instance ( Callback )
Instance
Callback
A callback to run in the browser whenever the current Slider value changes.
DEPRECATED: use .js_on_change or .on_change with “value” or “value_throttled”
callback_policy
property type: Enum ( SliderCallbackPolicy )
Enum
SliderCallbackPolicy
When the value_throttled property is updated.
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_throttle milliseconds.
callback_throttle
“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.
Both Python and JS callbacks on “value_throttled” will respect this policy setting.
property type: Float
Float
Number of milliseconds to pause between callback calls as the slider is moved.
direction
property type: Enum ( Enumeration(ltr, rtl) )
format
property type: String
String
show_value
property type: Bool
Bool
Whether or not show slider’s value.
title
Slider’s label.
tooltips
{ "align": "start", "aspect_ratio": null, "background": null, "bar_color": "#e6e6e6", "callback": null, "callback_policy": "throttle", "callback_throttle": 200, "css_classes": [], "default_size": 300, "direction": "ltr", "disabled": false, "format": null, "height": null, "height_policy": "auto", "id": "14697", "js_event_callbacks": {}, "js_property_callbacks": {}, "margin": [ 5, 5, 5, 5 ], "max_height": null, "max_width": null, "min_height": null, "min_width": null, "name": null, "orientation": "horizontal", "show_value": true, "sizing_mode": null, "subscribed_events": [], "tags": [], "title": "", "tooltips": true, "visible": true, "width": null, "width_policy": "auto" }
Slider
Bases: bokeh.models.widgets.sliders.AbstractSlider
bokeh.models.widgets.sliders.AbstractSlider
Slider-based number selection widget.
end
The maximum allowable value.
start
The minimum allowable value.
step
The step between consecutive values.
value
Initial or selected value.
value_throttled
Initial or selected value, throttled according to callback_policy.
{ "align": "start", "aspect_ratio": null, "background": null, "bar_color": "#e6e6e6", "callback": null, "callback_policy": "throttle", "callback_throttle": 200, "css_classes": [], "default_size": 300, "direction": "ltr", "disabled": false, "end": null, "format": "0[.]00", "height": null, "height_policy": "auto", "id": "14707", "js_event_callbacks": {}, "js_property_callbacks": {}, "margin": [ 5, 5, 5, 5 ], "max_height": null, "max_width": null, "min_height": null, "min_width": null, "name": null, "orientation": "horizontal", "show_value": true, "sizing_mode": null, "start": null, "step": 1, "subscribed_events": [], "tags": [], "title": "", "tooltips": true, "value": null, "value_throttled": null, "visible": true, "width": null, "width_policy": "auto" }
RangeSlider
Range-slider based number range selection widget.
property type: Tuple ( Float , Float )
Tuple
Initial or selected range.
{ "align": "start", "aspect_ratio": null, "background": null, "bar_color": "#e6e6e6", "callback": null, "callback_policy": "throttle", "callback_throttle": 200, "css_classes": [], "default_size": 300, "direction": "ltr", "disabled": false, "end": null, "format": "0[.]00", "height": null, "height_policy": "auto", "id": "14713", "js_event_callbacks": {}, "js_property_callbacks": {}, "margin": [ 5, 5, 5, 5 ], "max_height": null, "max_width": null, "min_height": null, "min_width": null, "name": null, "orientation": "horizontal", "show_value": true, "sizing_mode": null, "start": null, "step": 1, "subscribed_events": [], "tags": [], "title": "", "tooltips": true, "value": null, "value_throttled": null, "visible": true, "width": null, "width_policy": "auto" }
DateSlider
Slider-based date selection widget.
property type: Date
Date
property type: Int
Int
{ "align": "start", "aspect_ratio": null, "background": null, "bar_color": "#e6e6e6", "callback": null, "callback_policy": "throttle", "callback_throttle": 200, "css_classes": [], "default_size": 300, "direction": "ltr", "disabled": false, "end": null, "format": "%d %b %Y", "height": null, "height_policy": "auto", "id": "14719", "js_event_callbacks": {}, "js_property_callbacks": {}, "margin": [ 5, 5, 5, 5 ], "max_height": null, "max_width": null, "min_height": null, "min_width": null, "name": null, "orientation": "horizontal", "show_value": true, "sizing_mode": null, "start": null, "step": 1, "subscribed_events": [], "tags": [], "title": "", "tooltips": true, "value": null, "value_throttled": null, "visible": true, "width": null, "width_policy": "auto" }
DateRangeSlider
Slider-based date range selection widget.
property type: Tuple ( Date , Date )
value_as_date
Convenience property to retrieve the value tuple as a tuple of date objects.
Added in version 1.1
value_as_datetime
Convenience property to retrieve the value tuple as a tuple of datetime objects.
{ "align": "start", "aspect_ratio": null, "background": null, "bar_color": "#e6e6e6", "callback": null, "callback_policy": "throttle", "callback_throttle": 200, "css_classes": [], "default_size": 300, "direction": "ltr", "disabled": false, "end": null, "format": "%d %b %Y", "height": null, "height_policy": "auto", "id": "14725", "js_event_callbacks": {}, "js_property_callbacks": {}, "margin": [ 5, 5, 5, 5 ], "max_height": null, "max_width": null, "min_height": null, "min_width": null, "name": null, "orientation": "horizontal", "show_value": true, "sizing_mode": null, "start": null, "step": 1, "subscribed_events": [], "tags": [], "title": "", "tooltips": true, "value": null, "value_throttled": null, "visible": true, "width": null, "width_policy": "auto" }