Those using Bokeh 2.x will get this error:
AttributeError: unexpected attribute 'callback_policy' to Slider, possible attributes are align, aspect_ratio, background, bar_color, css_classes, default_size, direction, disabled, end, format, height, height_policy, js_event_callbacks, js_property_callbacks, margin, max_height, max_width, min_height, min_width, name, orientation, show_value, sizing_mode, start, step, subscribed_events, tags, title, tooltips, value, value_throttled, visible, width or width_policy
when running this code:
from bokeh.models.widgets import Slider
slider = Slider(callback_policy='mouseup')
The release guide mentions the following about API removals:
bokeh.models.widgets.sliders
callback, callback_throttle, and callback_policy removed from all sliders. Use value for continuous updates and value_throttled for updates only on mouseup
One also has to do the following:
slider.on_change('value_throttled', ...)