views:

1574

answers:

2

I'm running Emacs 22.1.1 and IPython 0.9.1 on OS X and I'd like to be able to run lines/methods/snippets of Python code from my current buffer on demand inside an IPython interpreter.

What do I need to do to get this working?

+4  A: 

The first link on google works:

  • you put ipython.el to a directory in your emacs load path, for me in .emacs-lisp (and you need a (add-to-list 'load-path "~/.emacs-lisp/"))
  • you add this to your .emacs:

    (setq ipython-command "/usr/bin/ipython")

    (require 'ipython)

Piotr Lesnicki
It's worth noting that when installing on OS X you'll likely have to also put python-mode.el from http://ipython.scipy.org/tmp/python-mode.el in the same folder as ipython.el.
Lawrence Johnston
+1  A: 

also ipython wont load with the official python.el being used with emacs 23.1.1

Richard Riley