Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[experiment] Async shell (run everything under asyncio) #11347
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.