[IPython-dev] IPython inputhook, higher rate?

Matthias BUSSONNIER bussonniermatthias at gmail.com
Wed Oct 1 04:57:52 EDT 2014


Le 1 oct. 2014 à 09:39, Martin Teichmann a écrit :

> Hi Thomas,
> 
>> Thanks for looking into this. We would be interested in having a better way
>> to integrate event loops with getting input in the terminal. It's probably
>> not practical to push that straight into core Python, and even if it was, it
>> would be some time before we could scrap our inputhook functionality in
>> favour of a new feature in Python 3.5.
> 
> To me it's a bit weird to say that we shouldn't push that straight into core
> Python - IPython is working around this broken functionality since more
> than a decade, so how long do we have to wait until something is not
> considered "straight" anymore? Apparently IPython is not the only one
> having this problem, as you mentioned others have also already written
> a library to circumvent this problem in the standard library.


I think that the point of Thomas is that our code need to be cleaned up. 
We are currently preparing to split IPython into different repo so trying to at that 
into IPython **now** is probably not a good time. 

What I can suggest (other can chime in and say water they think is a good idea)
is to write an IPep[1] or an issue on github that target IPython 4.0 or later. 
It will allow us to organize  and decide if/when we want that. 


> As for compatibility: I actually think that the way IPython is handling
> the problem - mostly hiding all the ugly details behind a nice API -
> would make it possible to have the new and old version nicely in
> parallel, especially as the new version has already mostly been written,
> for the case if IPython is not running in the terminal.

The other issue is that we still support Python 2.7, thus anything that targets 
3.x only is dangerous and subject to controversy. Though the discussion 
to drop 2.7 support for some functionality do arise more and more often.
This might be a case where maybe dropping 2.7 might help, 
or where such a feature can push toward a drop of 2. support. It's 
not my area of expertise so I don't know. 


From the discussion on Python bug tracker with Guido, and reading in between lines, 
I also would say that having such a feature in IPython might help to push this into Python
itself later. And having async console looks cool. 

> 
> Greetings
> 
> Martin
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev


[1] https://github.com/ipython/ipython/wiki/IPEPs:-IPython-Enhancement-Proposals, don't worry much more informal than Python one. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20141001/dbd89ae9/attachment.html>


More information about the IPython-dev mailing list