From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ob-python specify :session error Date: Fri, 29 Dec 2017 12:28:14 +0100 Message-ID: <87a7y1db8x.fsf@nicolasgoaziou.fr> References: <7d73c769-6059-919f-bf12-18135989c629@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eUspr-0004Sg-48 for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:28:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eUspn-0006mY-5e for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:28:23 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53831) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eUspm-0006lV-Vq for emacs-orgmode@gnu.org; Fri, 29 Dec 2017 06:28:19 -0500 In-Reply-To: <7d73c769-6059-919f-bf12-18135989c629@gmail.com> (stardiviner's message of "Fri, 29 Dec 2017 19:14:25 +0800") 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: stardiviner Cc: emacs-orgmode 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