[IPython-dev] Ipython frontend for two process

Fernando Perez fperez.net at gmail.com
Sun Apr 3 16:22:13 EDT 2011


Hey Omar,

2011/3/29 Thomas Kluyver <takowl at gmail.com>:
> Thanks, that's working now. As for tab completion, if you look in
> IPython/core/completer.py, at line 865, uncomment the DEBUG = True line, and
> it should give you more info on what's going wrong.

This looks like a great start, thanks!  As Thomas mentions, that's the
easiest way to activate debugging for tab completion.  What I
recommend is that you study the qt frontend for behavior, since
effectively what you are doing is implementing the same basic
architecture.  The qt console converts a tab key event into a
completion call to the kernel, in your case you'll need to do that via
readline by registering a completer.

I've put up the original zmq example as its own repo here:

https://github.com/fperez/zmq-pykernel

so that you can easily see how all that works.  This is the old code
you may have already seen, but having it available in an
easy-to-reference permanent location is probably a good idea.

Let us know if any of this doesn't make sense...

Cheers,

f



More information about the IPython-dev mailing list