From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giacomo M Subject: Help with "alternative" ipython session workflow Date: Sat, 11 Apr 2015 16:09:42 -0700 Message-ID: <5529A9B6.1050901@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yh4X9-00041H-UW for emacs-orgmode@gnu.org; Sat, 11 Apr 2015 19:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yh4X4-0000UQ-VY for emacs-orgmode@gnu.org; Sat, 11 Apr 2015 19:09:51 -0400 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:35797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yh4X4-0000TX-NB for emacs-orgmode@gnu.org; Sat, 11 Apr 2015 19:09:46 -0400 Received: by pddn5 with SMTP id n5so63272151pdd.2 for ; Sat, 11 Apr 2015 16:09:45 -0700 (PDT) Received: from [128.32.44.182] (dhcp-44-182.EECS.Berkeley.EDU. [128.32.44.182]) by mx.google.com with ESMTPSA id ll2sm2938826pbc.11.2015.04.11.16.09.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Apr 2015 16:09:43 -0700 (PDT) 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 I have never been able to make org sessions getting along properly with ipython, so at the moment I'm using a sort of handmade hybrid between org and an ipython notebook, doing the following: 1. Enter the first source block in a .org file 2. Start an ipython instance with C-c C-c 3. Keep the org/src buffer and *Python* buffer side by side 4. Copy paragraph of code around cursor (keeping cursor in position) (I usually split sections of code I want to run individually with spaces) 5. Select *Python* buffer 6. Go to last position 7. Type %paste 8. Go back to other buffer (src/org) I probably sound like a caveman doing this over and over, but this is the most stable setup I could find. Plus I keep experimenting w/ code, and this gives me a very interactive environment. Macros helped me to automatize steps 4-8, but still it's not very flexible, e.g. I need the side-by-side buffers, with ipython already running. I was wondering whether anybody has any suggestions to improve this (and make me save some minutes of life every day), or any good reference to make ipython work smoothly with org src blocks Thanks, Giacomo