Re: Input transformation rework - input requested

Martin Teichmann <[email protected]> Wed, 30 May 2018 10:23:41 +0200
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CAK9R32QO_fB70PD0SFFNDYrcdbFq3qBfRCXrdUdJj16T0+5t8g@mail.gmail.com>
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