[IPython-dev] Issues with IPython and emacs (in ubuntu 14.04)
Emanuele Olivetti
emanuele at relativita.com
Mon May 4 17:37:02 EDT 2015
[re-posting from IPython-user, as suggested by T.Kluyver]
Hi,
I recently upgraded my laptop from Ubuntu 12.04 LTS to 14.04 LTS. As a
consequence, IPython was upgraded from v0.12.1 to v1.2.1. I am very happy
with the more recent IPython, but I am also experiencing a number of
issues with its use within emacs, both v23 and v24, like: "py-execute-buffer"
(C-c C-c) not working, "py-execute-region" (C-c |) not working, TAB-completion
not working, among others.
With IPython v.0.12.1 everything was working well within emacs.
I followed these instructions on the IPython website:
http://ipython.org/ipython-doc/1/config/editors.html
and removed all my emacs customizations in order to understand where the
issue is. My .emacs is now just
(require 'ipython)
as suggested there. Notice that the python-mode package shipped with
Ubuntu 14.04 is v6.1.3, which should be recent enough.
I also tried the instructions for the more recent IPtyhon v3.x:
http://ipython.org/ipython-doc/3/config/details.html#editor-configuration
Which boil down to:
(require 'python)
(setq python-shell-interpreter "ipython")
Still no luck.
I then upgraded python-mode.el with the most recent one (dev, i.e >v0.6.2.0)
available from here:
https://launchpad.net/python-mode
and many issues disappeared with the following .emacs:
(add-to-list 'load-path "/PATH_TO/python-mode/")
(setq py-install-directory "/PATH_TO/python-mode/")
(require 'ipython)
(setq python-shell-interpreter "ipython")
(require 'python-mode)
Still "py-execute-region" (C-c |) is not working, with different output in
emacs v24 ("Indentation error") vs. emacs v23 (hangs).
What is your working set-up for emacs and IPython? Is there a way to make
it work well as it was before?
Thanks,
Emanuele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150504/4887b924/attachment.html>
More information about the IPython-dev
mailing list