python-mode and ipython.el

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

python-mode and ipython.el

Yaroslav Halchenko-5
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
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|

Re: python-mode and ipython.el

Yaroslav Halchenko-5
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
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode