[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] ob-python specify :session error
From: |
Nicolas Goaziou |
Subject: |
Re: [O] ob-python specify :session error |
Date: |
Fri, 29 Dec 2017 12:28:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
stardiviner <address@hidden> 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