all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Wilson <wilson.andrew.j@gmail.com>
To: help-gnu-emacs@gnu.org, ipython-user@scipy.org,
	 Tom Roche <Tom_Roche@pobox.com>
Subject: Re: [IPython-User] how to fix IPython prompt in emacs shell mode?
Date: Wed, 29 Sep 2010 14:28:19 -0500	[thread overview]
Message-ID: <AANLkTinXm0ABea53SDhD-4JDJLuTfzCmGyjKkXyBpg8J@mail.gmail.com> (raw)
In-Reply-To: <87tyl8tmea.fsf@pobox.com>

[-- Attachment #1: Type: text/plain, Size: 814 bytes --]

On Wed, Sep 29, 2010 at 1:50 PM, Tom Roche <Tom_Roche@pobox.com> wrote:

>
> When, in emacs, I do
>
> M-x shell
> ipython
>
> everything seems to work, except that the prompt is
>
> ^[[0;32mIn [^[[1;32m1^[[0;32m]: ^[[0m
>
> How to get the normal ipython prompt, or close facsimile?



Try this:

(setq ansi-color-for-comint-mode t)


* from
http://ipython.scipy.org/doc/rel-0.9.1/html/config/initial_config.html



Or is there a better way to run ipython interactively in an emacs buffer?


ipython.el is pretty good - it has the niceties of python-mode, but with
ipython as the py-shell interpreter (for example, C-c C-c in a python code
buffer executes that code in your ipython buffer).

I think ipython.el is distributed with ipython, but you can also grab a copy
at:  http://ipython.scipy.org/dist/ipython.el

[-- Attachment #2: Type: text/html, Size: 1592 bytes --]

  reply	other threads:[~2010-09-29 19:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-29 18:50 how to fix IPython prompt in emacs shell mode? Tom Roche
2010-09-29 19:28 ` Andrew Wilson [this message]
2010-09-29 19:43   ` Tom Roche

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

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

  git send-email \
    --in-reply-to=AANLkTinXm0ABea53SDhD-4JDJLuTfzCmGyjKkXyBpg8J@mail.gmail.com \
    --to=wilson.andrew.j@gmail.com \
    --cc=Tom_Roche@pobox.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ipython-user@scipy.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.