From mboxrd@z Thu Jan 1 00:00:00 1970 From: mdoyley@ur.rochester.edu (Doyley, Marvin) Subject: Re: babel python example not reproducible Date: Wed, 11 Jun 2014 03:48:36 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuhfW-000447-W3 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 08:30:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuhfP-0006Vu-H4 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 08:30:18 -0400 Received: from plane.gmane.org ([80.91.229.3]:53015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuhfP-0006Vl-BZ for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 08:30:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WuhfI-0004m2-23 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 14:30:04 +0200 Received: from cpe-66-66-94-63.rochester.res.rr.com ([66.66.94.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2014 14:30:04 +0200 Received: from mdoyley by cpe-66-66-94-63.rochester.res.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Jun 2014 14:30:04 +0200 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 Works for me, see example below #+BEGIN_SRC python :results output :session foo x=100 print "hello" 2 print "bye" #+END_SRC #+RESULTS: : : >>> hello : 2 : bye #+BEGIN_SRC python :results output :session foo print "hello good bye" print "Printing value from previous session", x #+END_SRC #+RESULTS: : : hello good bye : Printing value from previous session 100 The only difference is that I like to give my session a name and for what it is worth I am using ipython (don't think this will make a difference). You can do this including the following statement in your .emacs file (setq python-shell-interpreter "ipython") (setq python-shell-interpreter-args "--pylab") Hope this help. Cheers, M