From mboxrd@z Thu Jan 1 00:00:00 1970 From: "R. Michael Weylandt" Subject: Odd interaction with Python sessions and Org 8.2.5 Date: Wed, 5 Mar 2014 22:02:34 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLOaG-0003QS-Uz for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 22:02:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLOaF-00032E-UO for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 22:02:56 -0500 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:62636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLOaF-00031p-MX for emacs-orgmode@gnu.org; Wed, 05 Mar 2014 22:02:55 -0500 Received: by mail-la0-f46.google.com with SMTP id hr17so1325325lab.33 for ; Wed, 05 Mar 2014 19:02:54 -0800 (PST) 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" Hi, I'm having trouble getting clean output from org 8.2.5 when I combine session based evaluation and capturing results from standard out. (See first example below) This is on Emacs 24.3 with the default python mode settings and nothing relevant in my init.el except for activating python support. Is this expected behavior or is there someway I can fix the first example? Michael <---------8---------------------------8----------------> #+TITLE: Hello World * Standard Out + Session (Problem) #+BEGIN_SRC python :results output :session *Python* def test(): print "Hello World" test() #+END_SRC #+RESULTS: : : ... >>> Hello World * Standard Out + No Session (Fine) #+BEGIN_SRC python :results output def test(): print "Hello World" test() #+END_SRC #+RESULTS: : Hello World * Value + Session #+BEGIN_SRC python :session *Python* def test(): print "Hello World" test() #+END_SRC #+RESULTS: * Value + No Session #+BEGIN_SRC python def test(): print "Hello World" test() #+END_SRC #+RESULTS: : None