Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs 23 and iPython

Is there anyone out there using iPython with emacs 23? The documents on the emacs wiki are a bit of a muddle and I would be interested in hearing from anyone using emacs for Python development. Do you use the download python-mode and ipython.el? What do you recommend?

like image 752
RichieHH Avatar asked Nov 20 '08 01:11

RichieHH


2 Answers

I got it working quite well with emacs 23. The only open issue is the focus not returning to the python buffer after sending the buffer to the iPython interpreter.

http://www.emacswiki.org/emacs/PythonMode#toc10

(setq load-path
      (append (list nil
                    "~/.emacs.d/python-mode-1.0/"
            "~/.emacs.d/pymacs/"
            "~/.emacs.d/ropemacs-0.6"
                    )
              load-path))
(setq py-shell-name "ipython")

(defadvice py-execute-buffer (around python-keep-focus activate)
  "return focus to python code buffer"
  (save-excursion ad-do-it))

(setenv "PYMACS_PYTHON" "python2.5") 
(require 'pymacs)

(pymacs-load "ropemacs" "rope-")

(provide 'python-programming)
like image 88
RichieHH Avatar answered Nov 09 '22 09:11

RichieHH


never used it myself, but I do follow the ipython mailing list, and there was a thread a couple months back.

maybe this will help

http://lists.ipython.scipy.org/pipermail/ipython-user/2008-September/005791.html

It's also a very responsive mailing list if you run into trouble.

like image 40
JimB Avatar answered Nov 09 '22 07:11

JimB