[experiment] Async shell (run everything under asyncio)#11347
[experiment] Async shell (run everything under asyncio)#11347Carreau wants to merge 4 commits intoipython:mainfrom
Conversation
|
Keep in mind that this could break the input hooks for UI toolkits which IPython has right now. (Did you test that?) If so, I think a solution would be to use the asyncio even loop with a custom "selector". The selector is the blocking call that waits for any kind of IO. Within the selector you can run another event loop, and glue them together. In any case, I think I like the direction where this is going! |
No I did not test, and this likely also bypass the pre and post execute hooks. This was mostly an experiment to see how much change was needed, and think about what internal API to deprecate. As we just released 7.0 I doubt I want to merge this in the 7.x branch. |
prompted by #11336, in which I realized that
patch_stdoutwas mostly meant for async based application.This run the all IPython shell into an eventloop, which has the side-effect of making async bg task work.