The callback throttling of the slider element doesn’t seem to work. Creating a slider element with the attributes “callback_throttle=15000000” and callback_policy=“throttle” doens’t affect the behaviour of the slider.
The documentation isn’t clear what kind of unt is used to measure the pause between each callback:
** “Number of microseconds to pause between callback calls as the slider is moved.”**
** “throttle”: the callback will be executed at most every callback_throttle milliseconds. **
Are you trying to use throttling in conjunction with Bokeh server (e.g. with .on_change) python callbacks? The throttling properties were added early on to support CustomJS callbacks, and continue to only apply to CustomJS callbacks, not to Bokeh server callbacks (which were added much later).
It is a human oversight that the help string for the property was not updated when server callbacks became available. It would be good if a note was added to reflect that the properties only apply to CustomJS callbacks. If you would like to submit a Pull Request to improve the help strings, it would be very appreciated. Here is the location:
If I have assumed incorrectly, and you are reporting problems with CustomJS callbacks, then that is potentially a bug. In that case please provide a complete, minimal, runnable test case that reproduces the problem you are seeing so that it can be investigated.
The callback throttling of the slider element doesn't seem to work. Creating a slider element with the attributes "callback_throttle=15000000" and callback_policy="throttle" doens't affect the behaviour of the slider.
The documentation isn't clear what kind of unt is used to measure the pause between each callback:
"Number of microseconds to pause between callback calls as the slider is moved."
“throttle”: the callback will be executed at most every callback_throttle milliseconds.