From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: Re: python sessions Date: Wed, 20 Mar 2013 16:25:59 -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: multipart/alternative; boundary=e89a8f646a07afdbf504d8610775 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIPaJ-0003wb-Hb for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 16:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIPaC-00064z-DP for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 16:26:07 -0400 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:34244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIPaC-00064d-4y for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 16:26:00 -0400 Received: by mail-ob0-f181.google.com with SMTP id ni5so2122235obc.12 for ; Wed, 20 Mar 2013 13:25:59 -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: Ista Zahn Cc: Orgmode Mailing List --e89a8f646a07afdbf504d8610775 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ista, what OS are you on? Maybe this (or part of it anyway) is only a Windows problem? On Wed, Mar 20, 2013 at 4:12 PM, Ista Zahn wrote: > On Wed, Mar 20, 2013 at 3:53 PM, Andreas R=F6hler > wrote: > > Am 20.03.2013 20:42, schrieb Ista Zahn: > > > >> On Wed, Mar 20, 2013 at 2:43 PM, Andreas R=F6hler > >> 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 > > > > --=20 Gary --e89a8f646a07afdbf504d8610775 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Ista, what OS are you on? =A0Maybe this (or part of it any= way) is only a Windows problem?


On Wed, Mar 20, 2013 at 4:12 PM, Ista Zahn <istaz= ahn@gmail.com> wrote:
On Wed, Mar 20, 2013 at 3:53 PM, Andreas R= =F6hler
<andr= eas.roehler@easy-emacs.de> wrote:
> Am 20.03.2013 20:42, schrieb Ista Zahn:
>
>> On Wed, Mar 20, 2013 at 2:43 PM, Andreas R=F6hler
>> <andreas.roehl= er@easy-emacs.de> 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 unn= amed

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
=A0 def foo(x):
=A0 =A0 return(x+1)

#+END_SRC

#+RESULTS:


#+BEGIN_SRC python :exports results :results output :session
=A0 def bar(x):
=A0 =A0 return(x+2)

#+END_SRC

#+RESULTS:

#+BEGIN_SRC python :exports results :results output :session
=A0 print(foo(100))
=A0 print(bar(100))

#+END_SRC

#+RESULTS:
: 101
: 102


>
> Andreas
>




--
Gary --e89a8f646a07afdbf504d8610775--