From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Re: python sessions Date: Wed, 20 Mar 2013 16:12:15 -0400 Message-ID: References: <51496061.20706@easy-emacs.de> <20524.1363795610@alphaville> <5149ED11.6000502@easy-emacs.de> <21887.1363800343@alphaville> <22562.1363803338@alphaville> <514A0359.3010809@easy-emacs.de> <514A13D1.50208@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIPNI-0007SW-GY for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 16:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIPNE-0001Y0-1O for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 16:12:40 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:58190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIPND-0001Xt-R1 for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 16:12:35 -0400 Received: by mail-pb0-f45.google.com with SMTP id ro8so1645602pbb.4 for ; Wed, 20 Mar 2013 13:12:35 -0700 (PDT) In-Reply-To: <514A13D1.50208@easy-emacs.de> 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: =?UTF-8?Q?Andreas_R=C3=B6hler?= Cc: emacs-orgmode@gnu.org On Wed, Mar 20, 2013 at 3:53 PM, Andreas R=C3=B6hler wrote: > Am 20.03.2013 20:42, schrieb Ista Zahn: > >> On Wed, Mar 20, 2013 at 2:43 PM, Andreas R=C3=B6hler >> wrote: >>> >>> >>>> I guess it depends on the definition of "works". I don't get python >>>> buffers with the name of the :session variable. >>> >>> >>> >>> Reads as it works only with named sessions, but fails with unnamed Oops, sorry I totally misread this before. I guess my last email didn't make much sense! >> >> >> It fails to name the python process buffers. > > > May you try still an unnamed session as sent by OP? Unnamed sessions works as expected: #+BEGIN_SRC python :exports results :results output :session def foo(x): return(x+1) #+END_SRC #+RESULTS: #+BEGIN_SRC python :exports results :results output :session def bar(x): return(x+2) #+END_SRC #+RESULTS: #+BEGIN_SRC python :exports results :results output :session print(foo(100)) print(bar(100)) #+END_SRC #+RESULTS: : 101 : 102 > > Andreas >