From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: python sessions Date: Wed, 20 Mar 2013 14:15:38 -0400 Message-ID: <22562.1363803338@alphaville> References: <51496061.20706@easy-emacs.de> <20524.1363795610@alphaville> <5149ED11.6000502@easy-emacs.de> <21887.1363800343@alphaville> Reply-To: nicholas.dokos@hp.com 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]:54796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UINYE-0006A0-3M for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:15:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UINYB-000170-2U for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:15:49 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:15688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UINYA-00016F-LZ for emacs-orgmode@gnu.org; Wed, 20 Mar 2013 14:15:46 -0400 In-Reply-To: Message from John Hendy of "Wed\, 20 Mar 2013 12\:54\:39 CDT." 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: John Hendy Cc: emacs-orgmode@gnu.org John Hendy wrote: > On Wed, Mar 20, 2013 at 12:25 PM, Nick Dokos wrot= e: > > 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? >=20 > I was thinking the concern was over not having the session named > properly, but might be wrong (Andreas could confirm). >=20 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. >=20 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). Nick