You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of expected behavior and the observed behavior
I expect pn.state.busy to reflect the actual state of the app. With Panel 1.4.0, if pn.config.throttled is set to True, the busy parameter will be True as soon as a slider is moved, even if it's not released, and stay True forever, including in new sessions for the remainder of the app life cycle.
Note that this does not happen if throttling is disabled globally and the function is bound to slider.param.value_throttled.
Complete, minimal, self-contained example code that reproduces the issue
importpanelaspnpn.extension(throttled=True)
defsynced_spinner(value):
returnpn.indicators.LoadingSpinner(value=value)
slider=pn.widgets.IntSlider(name='Slider', start=0, end=1)
text=pn.bind(lambdax: f'Value of slider is {x}', slider)
spinner=pn.bind(synced_spinner, pn.state.param.busy)
pn.Row(pn.Column(slider, text), spinner).servable()
The text was updated successfully, but these errors were encountered:
TheoMathurin
changed the title
Inconsistent loading spinner state when throttling is enabled globally
Inconsistent pn.state.busy when throttling is enabled globally
Apr 9, 2024
ALL software version info
Panel 1.4.0
Bokeh 3.4.0
In a server
Description of expected behavior and the observed behavior
I expect
pn.state.busy
to reflect the actual state of the app. With Panel 1.4.0, ifpn.config.throttled
is set toTrue
, the busy parameter will beTrue
as soon as a slider is moved, even if it's not released, and stayTrue
forever, including in new sessions for the remainder of the app life cycle.Note that this does not happen if throttling is disabled globally and the function is bound to
slider.param.value_throttled
.Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
No error in python or javascript
Screenshots or screencasts of the bug in action
The text was updated successfully, but these errors were encountered: