From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: babel python example not reproducible Date: Tue, 10 Jun 2014 22:11:32 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc853c4f115f04fb887a9a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wuaow-0002i8-T5 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 01:11:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wuaow-0004h4-02 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 01:11:34 -0400 Received: from mail-ve0-x229.google.com ([2607:f8b0:400c:c01::229]:43620) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wuaov-0004gx-R0 for emacs-orgmode@gnu.org; Wed, 11 Jun 2014 01:11:33 -0400 Received: by mail-ve0-f169.google.com with SMTP id pa12so3565783veb.28 for ; Tue, 10 Jun 2014 22:11:33 -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 --047d7bdc853c4f115f04fb887a9a Content-Type: text/plain; charset=UTF-8 Hi, I try to understand the difference of "session" and "non-session" as in http://orgmode.org/manual/Results-of-evaluation.html#Results-of-evaluation However, I copy-paste the example but have different result. It looks like that the result contains whatever sent to the interactive shell too. Any option I need to set to reproduce the same result as in the manual? I am using python 2.7.5 + emacs 24.3.9 + orgmode 8.2.6. #+BEGIN_SRC python :results output :session print "hello" 2 print "bye" #+END_SRC #+RESULTS: : print "hello" : hello : 2 : 2 : print "bye" : bye : : --047d7bdc853c4f115f04fb887a9a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0
=C2=A0 =C2=A0 =C2=A0I try to understand the = difference of "session" and "non-session" as in =C2=A0http://orgmode.org/manual/Results-of-evaluation.html#Results-of-= evaluation

However, I copy-paste the example but have different re= sult. It looks like that the result contains whatever sent to the interacti= ve shell too. Any option I need to set to reproduce the same result as in t= he manual? =C2=A0I am using python 2.7.5 + emacs 24.3.9 + orgmode 8.2.6.=C2= =A0

#+BEGIN_SRC python :results output :session
<= div>=C2=A0print "hello"
=C2=A02
=C2=A0print &= quot;bye"
#+END_SRC

#+RESULTS:
: print "hello"
: hello
: 2
: 2
: print "bye"<= /div>
: bye
:=C2=A0
:=C2=A0

--047d7bdc853c4f115f04fb887a9a--