From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Subject: Re: Babel python question: use of ipython and %cpaste Date: Tue, 03 Dec 2013 13:48:06 +0100 Message-ID: <529DD306.2090109@easy-emacs.de> References: <529D7546.3080500@lbl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnpLi-0004Hi-PO for emacs-orgmode@gnu.org; Tue, 03 Dec 2013 07:45:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnpLc-0000eV-Hb for emacs-orgmode@gnu.org; Tue, 03 Dec 2013 07:45:10 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:55181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnpLc-0000T5-8R for emacs-orgmode@gnu.org; Tue, 03 Dec 2013 07:45:04 -0500 In-Reply-To: <529D7546.3080500@lbl.gov> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 03.12.2013 07:08, schrieb Arun Persaud: > Hi > > being able to use python as a source block is great, but I often stumble > over the fact that when using sessions you have to treat empty lines in > a special way (i.e. as the end of an indentation block). > > I was wondering if it would be easy to create an ipython mode, something > like > > #+BEGIN_SRC ipython ... > > where the content for a session is copied over to an ipython buffer > using the ipython magic %cpaste. This way empty lines should be treated > correctly. > Using the magic command, as shown in Rasmus' answer, should work. If not, as for python-mode.el, please file a bug-report at https://bugs.launchpad.net/python-mode