☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Where to run async code in bokeh server

Community Support
Steven_Van_Buskirk
Steven_Van_Buskirk

I have a bokeh server sharing an asyncio loop with an aiohttp web server. I have a few different bokeh applications running in the directory format. I want to grab arguments from a request to a bokeh server application such as an id and then use that id to grab some data out of a database. My database access is through the aiopg library and therefore all of the function calls are async using the asyc/await syntax. My question is where and how can I run code that performs async calls to a database for example? I see in the documentation for tornado that there are methods to convert an asyncio future to a tornado future (http://www.tornadoweb.org/en/stable/asyncio.html). I’m thinking those may be helpful but I’m not sure.

⌁   Link to post

End of archived discussion · Replies are disabled