unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Federico Beffa <beffa@ieee.org>
Cc: 17542@debbugs.gnu.org
Subject: bug#17542: python.el and ipython
Date: Thu, 22 May 2014 21:00:08 -0400	[thread overview]
Message-ID: <jwvd2f5nwcq.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <CAKrPhPM68h24CMSWn9UMHEUXS-rMYxBv-hETHFoQwujjvEWRFA@mail.gmail.com> (Federico Beffa's message of "Wed, 21 May 2014 15:22:41 +0200")

> I'm trying to set up the python-mode (python.el) to use ipython as the
> interactive shell. I've added the folloging lines in my .emacs file:

> (require 'python)
> (setq
>  python-shell-interpreter "C:/Python27/python.exe"
>  python-shell-interpreter-args
>    "-i C:/Python27/Scripts/ipython-script.py console --matplotlib=tk"
>  ;; python-shell-interpreter-args
>  ;;   "-i C:/Python27/Scripts/ipython-script.py console --matplotlib=qt"
>  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")

Do you really need all that to use IPython?  Can't we make it simpler?


        Stefan





      parent reply	other threads:[~2014-05-23  1:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21 13:22 bug#17542: python.el and ipython Federico Beffa
2014-05-22 14:48 ` Federico Beffa
2014-05-22 15:57   ` Glenn Morris
2014-05-23  1:00 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd2f5nwcq.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=17542@debbugs.gnu.org \
    --cc=beffa@ieee.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).