[IPython-dev] Input transformation rework - input requested

Martin Teichmann lkb.teichmann at gmail.com
Wed May 30 04:23:41 EDT 2018


Hi Thomas, Hi List,

years ago I have been working on some input transformation, which, I
think, would be a good idea to have in mind when reworking them, it's
at https://github.com/tecki/ipython-yf

The idea was at the time to support python's asyncio on a command
line, such that you can copy-and-paste code you're trying to test into
a command line, and it runs! At the time, that still meant to support
yield from on a command line, nowadays supporting await would be
needed as well.

But as we're already at it, I guess in the future Jupyter and IPython
will slowly converge into a asyncio world. The underlying zmq library
is already asyncio compatible, and if I remember correctly there is
also already some code in IPython which plays with asyncio event
loops.

In order to make things suitable for asyncio, it is a good idea to
seperate out blocking from non-blocking code. Currently, IPython is
not written at all like that, and I would not ask for it to be changed
as it is a lot of work, but if you're already working on it, keeping
it in mind may be fine.

Greetings

Martin


More information about the IPython-dev mailing list