-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Panel widgets not working with fast async/ await functions #4237
Comments
Here is a similar example using a import asyncio
import panel as pn
pn.extension()
submit_button = pn.widgets.Button(name="Submit")
@pn.depends(submit_button, watch=True)
async def _click(_):
submit_button.disabled=True
await asyncio.sleep(0.01)
submit_button.disabled=False
submit_button.servable() After clicking once I would expect the button to be enabled. But it is disabled If I increase the |
This was referenced Jan 26, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
panel==0.14.2
I'm trying to add documentation on using Dask. Currently working on Async. I can see that the Terminal writes the same line twice when
await
is triggered right afterterminal.write
.I would expect
start
to be written to the terminal once for every button click. Instead its written twice.If you uncomment the line
# time.sleep(0.05)
I only getstart
written once per click.The text was updated successfully, but these errors were encountered: