From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: ob-python specify :session error Date: Fri, 29 Dec 2017 19:58:04 +0800 Message-ID: References: <7d73c769-6059-919f-bf12-18135989c629@gmail.com> <87a7y1db8x.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113dddfa26de2e0561795a7c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUtJ7-0007IW-6B for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:58:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUtJ6-00018x-0N for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:58:37 -0500 Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:44075) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eUtJ5-00018f-Ox for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:58:35 -0500 Received: by mail-oi0-x230.google.com with SMTP id g6so12665728oib.11 for ; Fri, 29 Dec 2017 03:58:35 -0800 (PST) In-Reply-To: <87a7y1db8x.fsf@nicolasgoaziou.fr> 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" To: Nicolas Goaziou Cc: emacs-orgmode --001a113dddfa26de2e0561795a7c Content-Type: text/plain; charset="UTF-8" After Edebug: I found the problem location: - [ ] org-babel-execute:python #+begin_src emacs-lisp (session (org-babel-python-initiate-session (cdr (assq :session params)))) #+end_src - [ ] org-babel-python-initiate-session - [ ] org-babel-python-session-buffer BTW: I'm using latest `master` branch source code. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Fri, Dec 29, 2017 at 7:28 PM, Nicolas Goaziou wrote: > Hello, > > stardiviner writes: > > > I have following org content: > > > > I define variable in Python inferior REPL (launched by [M-x run-python]) > > > > Python> name = "chris" > > > > #+begin_src python :session "*Python*" > > print(name) > > #+end_src > > > > But I got error: > > > > > org-babel-python-evaluate-session: Buffer *Python-*Python** does not > > exist or has no process > > Try this: > > #+begin_src python :session *Python* :results output > print(name) > #+end_src > > #+RESULTS: > : chris > > > Regards, > > -- > Nicolas Goaziou > --001a113dddfa26de2e0561795a7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
After Edebug:
I found the problem location:

=20 =C2=A0 - [ ] org-babel-execute:python

=C2=A0=C2=A0=C2=A0 #+begin_s= rc emacs-lisp
=C2=A0=C2=A0=C2=A0 (session (org-babel-python-initiate-ses= sion
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (cdr (assq :session params))))
=C2=A0=C2=A0=C2=A0 #+end_src=

=C2=A0=C2=A0=C2=A0 - [ ] org-babel-python-initiate-session
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 - [ ] org-babel-python-session-buffer

=
BTW: I'm using latest `master` branch source code.

=
[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG = key ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDD= D B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div>


--001a113dddfa26de2e0561795a7c--