[Python-mode] python-mode and ipython.el

Yaroslav Halchenko lists at onerussian.com
Tue Jan 11 17:44:59 CET 2011


nevermind -- debugged situation... problem is inherent to ipython and
somewhat non-robustness of ipython.el.

FWIW:

ipython 0.10 (in Debian sid/squeeze) has issue handling its ad-hoc way
to silence it down for some calls: e.g.
in fixed 0.10.1:

In [1]: print 1 # PYTHON-MODE SILENT
1


while in 0.10:
In [1]: print 1 # PYTHON-MODE SILENT
------> print(1 # PYTHON-MODE SILENT)
   ...: 
   ...: 
   ...: 
   ...: 
goes on

as a quick work-around if someone hits it as well:

    (setq ipython-completion-command-string
          "print(';'.join(__IP.Completer.all_completions('%s'))) #PYTHON-MODE SILENT\n")


Cheers

On Tue, 11 Jan 2011, Yaroslav Halchenko wrote:

> Hi Guys,

> Somewhat unrelated to the release of python-mode...

> I wonder if anyone is using python-mode together with ipython as the
> interpreter... do you use then ipython's ipython.el?

> My problem is that previously (I think with emacs 22 and snapshots prior 23),
> when I used python-mode + ipython.el, completions in the python shell were
> working just fine.  Then after some upgrade (sorry, I do not recollect when it
> happened but may be nearly a year ago) -- completions stopped working. Now I am
> using emacs 23.2+1-7 on Debian, python shell can't complete even environment
> names, not to mention attributes of the modules/objects:

> Using the CPython shell
> Can't find completion for "nump" [2 times]
> Can't find completion for "numpy"
> Can't find completion for "numpy."

> I just thought to ask here first ;-)
-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic


More information about the Python-mode mailing list