[IPython-dev] New hooks suggestion: line buf, cursor pos

Brian Granger ellisonbg.net at gmail.com
Thu Dec 4 23:05:54 EST 2008


I don't really know the readline and completion related parts of
IPython very well.  But, I am all for abstracting the readline stuff
out.  I also think that initially hooks are probably the best way of
going about that.

But, while we are on this topic, what do you think about the eventual
unification of the existing IPython core and IPython.kernel.core?  I
would love to get rid of IPython.kernel.core, and just use IPython,
but I don't think it is ready yet.  You probably know the existing
core as well as anyone, so I wanted to get your opinion.

More questions:

* What do you think the main challenges are? (I have my own list, but
I am curious what you have in mind).

* What do you think the best approach is to move forward on all of this stuff?

Back to the question of hooking readline out.  For now, I think hooks
will be fine.  Eventually, I think we need to re-visit the hooks
system to see if it is really what we need movig forward.



On Wed, Dec 3, 2008 at 10:47 AM, Ville M. Vainio <vivainio at gmail.com> wrote:
> On Wed, Dec 3, 2008 at 8:44 PM, Ville M. Vainio <vivainio at gmail.com> wrote:
>> Currently, these are directly provided by readline, and you can
>> monkeypatch your way around this requirement, but that's obviously not
>> something to like...
> Addendun: we can factor out the need for readline as far as completion
> goes by making default hooks that use readline in a separate
> extension.
> Frankly, I'd look to hook away the whole readline requirement, it
> should be pretty simple in practice.
> --
> Ville M. Vainio
> http://tinyurl.com/vainio
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev

More information about the IPython-dev mailing list