From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Re: python sessions Date: Wed, 20 Mar 2013 18:06:27 -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]:59466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIR9n-0007P1-Br for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 18:06:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIR9k-0005EB-Ae for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 18:06:51 -0400 Received: from mail-da0-x229.google.com ([2607:f8b0:400e:c00::229]:43847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIR9k-0005E5-4R for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 18:06:48 -0400 Received: by mail-da0-f41.google.com with SMTP id w4so1247184dam.0 for ; Wed, 20 Mar 2013 15:06:47 -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: Gary Oberbrunner Cc: Orgmode Mailing List On Wed, Mar 20, 2013 at 4:25 PM, Gary Oberbrunner w= rote: > Ista, what OS are you on? Maybe this (or part of it anyway) is only a > Windows problem? Maybe -- I'm on Arch Linux. > > > On Wed, Mar 20, 2013 at 4:12 PM, Ista Zahn wrote: >> >> 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 >> > >> > > > > -- > Gary