Can a button click be made to trigger an async function?

async def button_clicked(event):
      _ = yield procedure_call()
button.on_click( button_clicked)

did not seem to work for me?

The next version of Panel Will have better support for async https://github.com/holoviz/panel/pull/1869.

You can already use it via the current master branch

1 Like

You May also find inspiration here https://awesome-panel.org/async-tasks

Perfect! I can wait! Will need to look at your work next.
In the meantime, it dawned on me to just do this by two messages,
one from each side…