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
Observed behavior (which is seen with coroutine event handler):
$ hatch run python bug-reports/panel-rehtml-async-bug.py
...
/home/me/.local/share/hatch/env/virtual/aiwb/WoaaKFKL/aiwb/lib/python3.10/site-packages/param/parameterized.py:2506: RuntimeWarning: coroutine 'on_div_clicked' was never awaited
watcher.fn(*args, **kwargs)
Complete, minimal, self-contained example code that reproduces the issue
This is a bug in your code, not Panel itself. Specifically you cannot call an asynchronous function in your lambda without awaiting it. It works just fine if you simply do:
Oops... forgot to replace the lambda when converting from sync to async. Not obvious from the above reproducer, but I use lambdas in my actual code to drop the event argument, since I usually don't care about it, and to access a closure cell instead, which carries the information that I do care about. Sorry for the noise. I'll switch to using partial functions.
Probably a case not covered by #3262 or holoviz/param#913.
ALL software version info
Description of expected behavior and the observed behavior
Expected behavior (which is seen with synchronous event handler):
Observed behavior (which is seen with coroutine event handler):
Complete, minimal, self-contained example code that reproduces the issue
The text was updated successfully, but these errors were encountered: