[IPython-dev] Input transformation rework - input requested

Matthias Bussonnier bussonniermatthias at gmail.com
Wed May 30 10:07:46 EDT 2018


Hi Martin,

Could you have a look at https://github.com/ipython/ipython/pull/11155,
which does some work to allow `await  coroutine` without the need for
magics ?
-- 
Matthias


On Wed, 30 May 2018 at 01:24, Martin Teichmann <lkb.teichmann at gmail.com>
wrote:

> 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
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at python.org
> https://mail.python.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20180530/25e65f36/attachment.html>


More information about the IPython-dev mailing list