From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Wilson Newsgroups: gmane.emacs.help Subject: Re: [IPython-User] how to fix IPython prompt in emacs shell mode? Date: Wed, 29 Sep 2010 14:28:19 -0500 Message-ID: References: <87tyl8tmea.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0022150482bbfc45b504916af7ee X-Trace: dough.gmane.org 1285802218 8327 80.91.229.12 (29 Sep 2010 23:16:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Sep 2010 23:16:58 +0000 (UTC) To: help-gnu-emacs@gnu.org, ipython-user@scipy.org, Tom Roche Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 30 01:16:56 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P15tQ-00049c-Bq for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Sep 2010 01:16:56 +0200 Original-Received: from localhost ([127.0.0.1]:60548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P15tP-00034j-NM for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 19:16:55 -0400 Original-Received: from [140.186.70.92] (port=45756 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P12KZ-00059o-GP for help-gnu-emacs@gnu.org; Wed, 29 Sep 2010 15:28:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P12KX-0008GK-Re for help-gnu-emacs@gnu.org; Wed, 29 Sep 2010 15:28:43 -0400 Original-Received: from mail-gw0-f41.google.com ([74.125.83.41]:55215) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P12KX-0008Fp-P5 for help-gnu-emacs@gnu.org; Wed, 29 Sep 2010 15:28:41 -0400 Original-Received: by gwj16 with SMTP id 16so563294gwj.0 for ; Wed, 29 Sep 2010 12:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=ULuqXXMjJoVv9jiECDqN48gnem+kFNMAkR6Hr2kwEYM=; b=xE16AE8HGIWEi39F9FwMTyMe9M/l70bJVaC6HkGRZtIxmU8Dv8AfI/eox2JC2tG3Rt w6x1/69Hc4RxVe13kuTXnue0JzxfVF12NOv2kf5SePb6z1QzgCc1UdjNtZ8A95Fs9231 9Bl9ZM9jeyiiwZoNIEhPRGmpXP8XrW3BD5ZFA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=vBEs4k/2WEDqWcDGHPVMm5EGXuWGbssczT0cjsxrJwZR9pJAef2r7u3u0XK5cK2Hb4 Z946tvcaIXJzxsDsgWv6CT6PNC1T7sT9BD1QtHxv4pz5oWkJYbfXAza6cbKqVzK8bfbD DXL7emNQ8VrHo5wnHEPLWj2ZnnGx4aSZdNPeM= Original-Received: by 10.231.35.8 with SMTP id n8mr2301490ibd.78.1285788519906; Wed, 29 Sep 2010 12:28:39 -0700 (PDT) Original-Received: by 10.231.15.137 with HTTP; Wed, 29 Sep 2010 12:28:19 -0700 (PDT) In-Reply-To: <87tyl8tmea.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 29 Sep 2010 19:15:21 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75039 Archived-At: --0022150482bbfc45b504916af7ee Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 29, 2010 at 1:50 PM, Tom Roche 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 --0022150482bbfc45b504916af7ee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Sep 29, 2010 at 1:50 PM, Tom Roc= he <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?
=A0=A0

Try this:

(setq a= nsi-color-for-comint-mode t)





Or is there=A0a better way to run ipython interactively in an emacs buffer= ?=A0

ipython.el is pretty good - it has the niceties of pyth= on-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: =A0http://ipython.scipy.org/dist/ipython.el
= --0022150482bbfc45b504916af7ee--