On Apr 25, 8:35 am, Seb <splu...@gmail.com> wrote: > Hi, > > Please excuse the slightly off-topic query. I'm learning Python, using > the IPython (0.13) shell, and wanted to run it from Emacs 24. AFAICT, > python.el is the most actively developed library, and is included in > Emacs. How do experienced Python programmers set up their python.el to > make the best of it? I've done it following the recommendations given > in the library¹: > > (setq > python-shell-interpreter "ipython" > python-shell-interpreter-args "" > 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") > > but this may be a little outdated as it refers to IPython 0.11. > > Thanks, > Seb > > +--- Footnotes ---+ > ¹ Ignored recommended setting for `python-shell-interpreter-args'
There were some ipython+emacs+windows bugs: https://bugs.launchpad.net/ipython/+bug/290228 Last I tried nearly 2 years, they were still there http://groups.google.com/group/comp.lang.python/browse_thread/thread/36e757567f28368e [Since you did not say whether you are on windows or *nix, just saying] -- http://mail.python.org/mailman/listinfo/python-list