The new python.el
(shipped with Emacs version 24.3) does support IPython. You need to add the following lines to your init.el
file (instructions copied from python.el
):
(require 'python)
(setq
python-shell-interpreter "ipython"
python-shell-interpreter-args "--pylab"
python-shell-prompt-regexp "In \\[[0-9]+\\]: "
python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: "
python-shell-completion-setup-code
"from IPython.core.completerlib import module_completion"
python-shell-completion-module-string-code
"';'.join(module_completion('''%s'''))\n"
python-shell-completion-string-code
"';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
This works on Linux (I'm running Ubuntu 12.04), some additional modifications might be needed on Windows (for details, check the init.el
source).
However, you should not use ipython.el
(which is distributed with the IPython package), as it explicitly depends on python-mode.el
(at least this is the case with IPython 0.12.1 which is installed on my system).