Comment 1 for bug 927136

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Python-mode] ipython setup

Am 04.02.2012 23:10, schrieb Maik Beckmann:
> Hello,
>
> By utilizing edebug-defun I figured out how to setup python-mode
> for ipython, so that completion works in a file buffer (M-TAB) as
> well as in the ipython comint buffer (TAB):
>
> (setq py-complete-function 'ipython-complete
> py-shell-complete-function 'ipython-complete
> py-shell-name "ipython"
> py-which-bufname "IPython")
>
> Without setting py-which-bufname to "IPython" emacs told me that
> no process is connected the buffer. After setting it, it worked
> as expected. However, I figured this out by using edebug and it
> might be just a hack.
>
> My questions: Am I doing it the way I'm supposed to? Are there
> docs which talk about how to do it right?

Hi,

you should not need any customization for IPython.
There was a bug, which shold be gone now. Could you try from current
trunk again?

Made a bug report lp:927136 for this. Let's continue there, should
something being left.

thanks for your report,

Andreas

>
>
> Thanks,
> Maik Beckmann
>
> PS: I'm running Archlinux, where /usr/bin/{python,ipython} are
> both Python 3. The above setting worked when I've temporarily
> altered these paths to point to python2 and ipython2
> respectively. I've changed these back and this is what I'm
> actually using
>
> (setq py-complete-function 'ipython-complete
> py-shell-complete-function 'ipython-complete
> py-shell-name "ipython2"
> py-which-bufname "Ipython2")
>
> along with these changes http://paste.pocoo.org/show/545846/