From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: launch/run IPython in emacs buffer Date: Fri, 01 Oct 2010 11:30:26 +0200 Message-ID: <4CA5AA32.3070805@easy-emacs.de> References: <87ocbf5rhg.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285925716 2407 80.91.229.12 (1 Oct 2010 09:35:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Oct 2010 09:35:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 01 11:35:14 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 1P1c18-0003hY-5a for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 11:35:13 +0200 Original-Received: from localhost ([127.0.0.1]:37292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1c12-0006WX-86 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Oct 2010 05:34:56 -0400 Original-Received: from [140.186.70.92] (port=50885 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1bzy-0006NQ-9V for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 05:33:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1bxB-0005rj-IR for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 05:30:59 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:54221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1bxB-0005rW-6w for help-gnu-emacs@gnu.org; Fri, 01 Oct 2010 05:30:57 -0400 Original-Received: from noname.home (brln-4dbc4297.pool.mediaWays.net [77.188.66.151]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LhkkD-1ONaNr0Fxh-00mU60; Fri, 01 Oct 2010 11:30:54 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: <87ocbf5rhg.fsf@pobox.com> X-Provags-ID: V02:K0:d0DT1nV5uLvQyVpvnRP38CoV3dbqFFhE3gpH4y2veDU 1WG0MX7Quxw+vTCYKwxE8n88Patl//p7Pvx41KKrNTcRMyF1pM z6qOQfjZ92Td1cWgAJJnSS1m0ufgeJVwMwSkRh4jK9bWOkaBkF Y2p5gqYWHmRyDMjTCnAVVpD67han8oOQluyk+cBienxijukyuV SBnznBCkni+x1wQDB6sNuUD9Ryvy/wP/QkQjXmYh1I= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:75048 Archived-At: Am 30.09.2010 14:46, schrieb Tom Roche: > > I can run IPython in an emacs buffer, but would appreciate help with > either of 2 problems: > > 0 opening an IPython buffer "from anywhere." I can open IPython in an > emacs buffer with the sequence > Hi, Ipython sends code to python. From a common emacs buffer this was done by pymacs. Didn't try it last times. > * open buffer on a python file, e.g. C-x C-f /tmp/py.py > * C-c ! > > This seems to work appropriately, e.g. M-p scrolls IPython history. > However > > * I'd like also to be able to open an IPython buffer from anywhere (in > emacs), since I often use IPython as a calculator and scratchpad. > > * I don't know of an existing command or config that does this. > > * I don't know enough elisp to do this. > > Hence I'd appreciate a pointer to an existing command or config, or > some elisp (or both) that will open an IPython buffer from anywhere in > emacs. > > 1 fix M-p in IPython in shell-mode. When I run IPython in emacs shell > mode (i.e. running `ipython` from a prompt after running `M-x shell`), > IPython runs (with correct prompt, thanks Andrew Wilson). But when I > attempt to scroll IPython history (with M-p at the IPython prompt), I > instead get bash history. Is there a way to make shell-mode pass the > M-p event to IPython? interesting point. ipython has it's own user and devel list maybe send your request here http://mail.scipy.org/mailman/listinfo/ipython-user also see http://ipython.scipy.org/moin/ resp. http://github.com/ipython/ipython/issues Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components https://code.launchpad.net/s-x-emacs-werkstatt/ > > FWIW, I'm running > > Ubuntu 10.04.1 LTS, GNOME, 64-bit > GNU Emacs 23.1.50.1 from ubuntu package=emacs-snapshot > IPython 0.10 from ubuntu package > python-mode 5.1.0 from https://launchpad.net/python-mode/ > Python 2.6.5 from ubuntu package > > TIA, Tom Roche > >