Re: Input transformation rework - input requested

Matthias Bussonnier <[email protected]> Wed, 30 May 2018 07:07:46 -0700
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CANJQusVfeXnKw1uWU2E04NMD9NMHeA3Y-Mr9d7MPT-hcz3mUrQ@mail.gmail.com>
--===============6808451092811294231==
Content-Type: multipart/alternative; boundary="000000000000bcea47056d6ce005"

--000000000000bcea47056d6ce005
Content-Type: text/plain; charset="UTF-8"

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 <[email protected]>
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
> [email protected]
> https://mail.python.org/mailman/listinfo/ipython-dev
>

--000000000000bcea47056d6ce005
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Martin,=C2=A0<div><br></div><div>Could you have a look =
at=C2=A0<a href=3D"https://github.com/ipython/ipython/pull/11155">https://g=
ithub.com/ipython/ipython/pull/11155</a>, which does some work to allow `aw=
ait=C2=A0 coroutine` without the need for magics ?=C2=A0</div><div>--=C2=A0=
</div><div>Matthias</div><div><br></div></div><br><div class=3D"gmail_quote=
"><div dir=3D"ltr">On Wed, 30 May 2018 at 01:24, Martin Teichmann &lt;<a hr=
ef=3D"mailto:[email protected]">[email protected]</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bor=
der-left:1px #ccc solid;padding-left:1ex">Hi Thomas, Hi List,<br>
<br>
years ago I have been working on some input transformation, which, I<br>
think, would be a good idea to have in mind when reworking them, it&#39;s<b=
r>
at <a href=3D"https://github.com/tecki/ipython-yf" rel=3D"noreferrer" targe=
t=3D"_blank">https://github.com/tecki/ipython-yf</a><br>
<br>
The idea was at the time to support python&#39;s asyncio on a command<br>
line, such that you can copy-and-paste code you&#39;re trying to test into<=
br>
a command line, and it runs! At the time, that still meant to support<br>
yield from on a command line, nowadays supporting await would be<br>
needed as well.<br>
<br>
But as we&#39;re already at it, I guess in the future Jupyter and IPython<b=
r>
will slowly converge into a asyncio world. The underlying zmq library<br>
is already asyncio compatible, and if I remember correctly there is<br>
also already some code in IPython which plays with asyncio event<br>
loops.<br>
<br>
In order to make things suitable for asyncio, it is a good idea to<br>
seperate out blocking from non-blocking code. Currently, IPython is<br>
not written at all like that, and I would not ask for it to be changed<br>
as it is a lot of work, but if you&#39;re already working on it, keeping<br=
>
it in mind may be fine.<br>
<br>
Greetings<br>
<br>
Martin<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">IPython-dev@pyt=
hon.org</a><br>
<a href=3D"https://mail.python.org/mailman/listinfo/ipython-dev" rel=3D"nor=
eferrer" target=3D"_blank">https://mail.python.org/mailman/listinfo/ipython=
-dev</a><br>
</blockquote></div>

--000000000000bcea47056d6ce005--

--===============6808451092811294231==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
IPython-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ipython-dev

--===============6808451092811294231==--