From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Re: python sessions Date: Wed, 20 Mar 2013 14:32:23 -0400 Message-ID: References: <51496061.20706@easy-emacs.de> <20524.1363795610@alphaville> <5149ED11.6000502@easy-emacs.de> <21887.1363800343@alphaville> <22562.1363803338@alphaville> 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]:35561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UINof-0004oP-Hk for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UINoa-0000VK-Rw for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:32:49 -0400 Received: from mail-pb0-f43.google.com ([209.85.160.43]:45295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UINoa-0000V1-Cj for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:32:44 -0400 Received: by mail-pb0-f43.google.com with SMTP id md12so1581521pbc.30 for ; Wed, 20 Mar 2013 11:32:43 -0700 (PDT) In-Reply-To: <22562.1363803338@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On Wed, Mar 20, 2013 at 2:15 PM, Nick Dokos wrote: > John Hendy wrote: > >> On Wed, Mar 20, 2013 at 12:25 PM, Nick Dokos wro= te: >> > Andreas R=C3=B6hler wrote: >> > >> >> Seems `org-babel-execute':python doesn't get the session flag. >> >> >> >> Edebug: org-babel-execute:python >> >> org-babel-execute:python >> >> executing Python code block... >> >> [4 times] >> >> Result: ((:comments . #1=3D"") (:shebang . #1#) (:cache . "no") >> >> (:padline . #1#) (:noweb . "no") (:tangle . "no") (:exports >> >> . "results") (:results . "replace output") (:hlines . "no") >> >> (:padnewline . "yes") (:session) (:result-type . output) >> > >> > Sure it does: ^^^^^^^^^^ >> > >> > What it does with it is another matter however. Am I missing something= ? >> >> I was thinking the concern was over not having the session named >> properly, but might be wrong (Andreas could confirm). >> > > I guessed Andreas tried with an unnamed session (but I agree it would be > best if he confirms): afaics, if I use a session name, it's passed > correctly in the params argument of org-babel-execute:python as > (:session . "foo"), but in the later processing, > org-babel-python-buffers is not set correctly. > >> I've not used python prior to this, but I use R almost daily in Org >> and if I do #+begin_src R :session R, I get a buffer actually named >> =3DR=3D. In this case, I expected the buffer name would be *PyFoo*. >> Checking if it was an issue with asterisks, I used =3D:session py=3D and >> still just get the default *Python* buffer created. >> > > Yes, I think it's ob-python's problem: but as I said before, I don't > understand why it works for you (and Ista Zahn). I guess it depends on the definition of "works". I don't get python buffers with the name of the :session variable. But I do get separate python buffers (.e.g., *Python*, *Python*<2>) for each session, and python blocks get executed in the right python process. To me that equals "works", but if the issue is that the buffers don't get named with the value of :session then no, that doesn't work for me either. Best, Ista > > Nick > > >