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

state.add_periodic_callback not working in 1.2.2 #5505

Closed
sylvaint opened this issue Sep 12, 2023 · 1 comment
Closed

state.add_periodic_callback not working in 1.2.2 #5505

sylvaint opened this issue Sep 12, 2023 · 1 comment
Milestone

Comments

@sylvaint
Copy link

sylvaint commented Sep 12, 2023

Software:

panel 1.2.2
bokeh 3.2.2
python 3.10.10
MAC OS Ventura 3.5.2

Description of expected behavior and the observed behavior

pn.state.add_periodic_callback not firing
Works fine when downgrading to panel 1.2.1
In code below text updates with 1.2.1 and does not with 1.2.2

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

import panel as pn
import time
pn.extension()

text = pn.widgets.StaticText(value="test")

def test():
    print("halo")
    text.value = "halo"
    time.sleep(1)
    text.value = "halo2"


pn.state.add_periodic_callback(test, period=2000)

pn.Row(text).servable()
@hoxbro
Copy link
Member

hoxbro commented Sep 13, 2023

Thank for the report. The problem you are describing has been fixed in #5490.

I hope we can have a new Panel release by the end of today.

@philippjfr philippjfr added this to the v1.2.3 milestone Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants