Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatetimeRangeSlider unexpected keyword argument 'callback_throttle' #7725

Open
CmpCtrl opened this issue Feb 21, 2025 · 1 comment
Open

DatetimeRangeSlider unexpected keyword argument 'callback_throttle' #7725

CmpCtrl opened this issue Feb 21, 2025 · 1 comment
Labels
type: docs Related to the Panel documentation and examples

Comments

@CmpCtrl
Copy link

CmpCtrl commented Feb 21, 2025

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)

Software Version Info
python  3.12
panel                      1.6.1
param                      2.2.0

Description of expected behavior and the observed behavior

The doc's for the DatetimeRangeSlider docs show a callback_throttle argument, but i get a TypeError when trying to use it.
TypeError: DatetimeRangeSlider.__init__() got an unexpected keyword argument 'callback_throttle'

I assume this is a documentation issue.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn

selector = pn.widgets.DatetimeRangeSlider(
    step=1,
    format="%H:%M:%S",
    callback_throttle=100,
)
selector.servable()
@ahuang11
Copy link
Contributor

Yes, I believe it was long replaced with value_throttled in panel 0.9.0.

- Slider no longer support `callback_policy` and `callback_throttle` as they have been replaced by the `value_throttled` property in bokeh

@ahuang11 ahuang11 added the type: docs Related to the Panel documentation and examples label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: docs Related to the Panel documentation and examples
Projects
None yet
Development

No branches or pull requests

2 participants