From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Fwd: Fwd: run python from org, draft Date: Fri, 29 Mar 2013 16:11:18 -0400 Message-ID: References: <5154BC51.1050001@easy-emacs.de> <5155A97D.2090907@easy-emacs.de> <87sj3e6y5n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15a1bdc0f7f504d915df84 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULfdw-0005k6-7r for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:11:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULfdv-0007gF-5A for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:11:20 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:54097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULfdu-0007g6-Vv for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 16:11:19 -0400 Received: by mail-pa0-f48.google.com with SMTP id lj1so477943pab.35 for ; Fri, 29 Mar 2013 13:11:18 -0700 (PDT) In-Reply-To: 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: Orgmode Mailing List --047d7b15a1bdc0f7f504d915df84 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Mar 29, 2013 at 11:35 AM, John Hendy wrote: > > This isn't working for me on Org-8.0 (from that Worg page): > > #+begin_src python :session > def foo(x): > if x>0: > return x+1 > else: > return x-1 > > foo(1) > #+end_src > > #+RESULTS: > : None > > Try applying my patch from this list a few days ago; I think it will work then. Without it, session mode is totally broken (I think). -- Gary --047d7b15a1bdc0f7f504d915df84 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Fri, Mar 29, 2013 at= 11:35 AM, John Hendy <jw.hendy@gmail= .com> wrote:


This isn't working for me on Org-8.0 (from that Worg pag= e):

#+begin_src python :session
def foo(x):
=A0 if x>0:
=A0 =A0 return x+1
=A0 else:
=A0 =A0 return x-1

foo(1)
#+end_src

#+RESULTS:
: None

Try applying my patch from this l= ist a few days ago; I think it will work then. =A0Without it, session mode = is totally broken (I think).=A0

--
Gary
--047d7b15a1bdc0f7f504d915df84--