Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44317

IPython in Emacs

From Seb <spluque@gmail.com>
Subject IPython in Emacs
Date 2013-04-24 22:35 -0500
Organization Church of Emacs
Newsgroups comp.lang.python
Message-ID <mailman.1050.1366862111.3114.python-list@python.org> (permalink)

Show all headers | View raw


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'

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

IPython in Emacs Seb <spluque@gmail.com> - 2013-04-24 22:35 -0500
  Re: IPython in Emacs rusi <rustompmody@gmail.com> - 2013-04-24 21:38 -0700
    Re: IPython in Emacs Seb <spluque@gmail.com> - 2013-04-25 08:01 -0500
      Re: IPython in Emacs rusi <rustompmody@gmail.com> - 2013-04-25 06:54 -0700
        Re: IPython in Emacs Seb <spluque@gmail.com> - 2013-04-25 17:18 -0500
          Re: IPython in Emacs rusi <rustompmody@gmail.com> - 2013-04-25 21:06 -0700

csiph-web