Document how to instantiate shared instances asynchronously #4238
Labels
type: docs
Related to the Panel documentation and examples
type: enhancement
Minor feature or improvement to an existing feature
I'm working on documenting how to use Dask with Panel including asynchronously.
I struggle figuring out what the best practice for instantiating shared objects asynchronously should be. The complication is that in a notebook you are running on an even loop and can just
await
in code cells. This you cannot in a server script - In a server script you can onlyawait
insideasync
functions.I would like a request to describe the best practice for doing this in the Asynchronous Functions section of the user guide at https://panel.holoviz.org/user_guide/Async_and_Concurrency.html#asynchronous-functions.
The description should enable you to write code that works both in a notebook and a server app.
Example
The below code can run in a notebook but not in a server script.
The text was updated successfully, but these errors were encountered: