Inspecting the source this seems to be possible, but wanted to check if there is direct support to it, instead of me changing some distribution files.
The ipython application I’m working on, hooks up an asyncio loop to ipythons PyOS_inputhook, allowing me to integrate inprocess the console input, my asyncio application and tornado webserver with asyncio loop.
I would like to have it launching bokeh server, so that the application was self contained, rather than having to start server in separate shell.
Looking at start.py of server, seems that it should be a question of simply replacing
with tornado.platform.asyncio’s AsyncIOMainLoop().install().
Now, before I start messing up distribution files, is there a previously proper tested way to embed server in asyncio’s looped app ?