[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ob-python specify :session error

From: address@hidden
Subject: Re: [O] ob-python specify :session error
Date: Fri, 29 Dec 2017 19:58:04 +0800

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))))

    - [ ] org-babel-python-initiate-session
      - [ ] org-babel-python-session-buffer

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

[stardiviner]           <Hack this world!>      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 <address@hidden> wrote:

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

    : chris


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]