ob-ipython icon indicating copy to clipboard operation
ob-ipython copied to clipboard

async results fail to appear in org buffer

Open aksarkar opened this issue 8 years ago • 3 comments

I'm manually starting a remote kernel on a compute cluster, then connecting my ipython source blocks to it using a named session.

  #+BEGIN_SRC ipython :session kernel-aksarkar.json :async t :results raw drawer
  import tensorflow as tf
  tf.__version__
  #+END_SRC

  #+RESULTS:
  :RESULTS:
  21494e9b-1d1e-49cf-b760-4f7deb12671c
  :END:

Synchronous execution of blocks works fine.

When I set :async t, the output placeholder sometimes fails to be replaced, and I get the following in *Messages*:

error in process sentinel: ipython--async-replace-sentinel: Search failed: "22da3225-4623-4eeb-8753-ad3343ec4595"
error in process sentinel: Search failed: "22da3225-4623-4eeb-8753-ad3343ec4595"

Versions: emacs 25.1.1 org 20171004 ob-ipython 20171008.1500

aksarkar avatar Oct 11 '17 15:10 aksarkar

I am having the same problems. it seems ob-ipython failed to communicate with juypter notebook.

yitang avatar Jan 21 '18 17:01 yitang

Same issue. Did you guys managed to find the reason?

dimitar-petrov avatar Dec 08 '18 06:12 dimitar-petrov

In my case, I think it's because an aynchronous block was queued and never dequeued.

I don't yet know how this happens, but it does explain other weird behavior I saw where asynchronous execution wasn't running the correct block (it was running some queued block instead).

aksarkar avatar Dec 10 '18 05:12 aksarkar