
I’m wondering if anyone has embedded a bokeh server in their aiohttp application? I am currently doing it like this and it seems to be working but I’m wondering if there any issues with this approach –
tornado_type_loop = AsyncIOMainLoop()
import asyncio
tornado_type_loop.install()
from aiohttp import web
asyncio_type_loop = asyncio.get_event_loop()
app = web.Application(loop= asyncio_type_loop, debug=False)
bokeh_server = Server({’/bkapp’: bokeh_app}, io_loop=tornado_type_loop)
bokeh_server.start()
web.run_app(app, host=‘127.0.0.1’, port=8080)

