Commit bb95444f authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

guile: Send execution replies on the right sockets.

* jupyter/guile.scm (reply-execute-request): Send "error" and
"execute_result" on 'kernel-iopub'.  Pass #:recipient when sending
"execute_reply".
parent ddf0e075
......@@ -118,7 +118,7 @@ from the evaluation of CODE, a string."
(const #f))))
(values (execute-reply (status 'ok)
(counter counter))
(pk 'result result))))
result)))
(lambda (key . args)
(let ((frames (unfold (cute >= <> (stack-length stack))
(cut stack-ref stack <>)
......@@ -163,7 +163,8 @@ from the evaluation of CODE, a string."
. ,(execute-reply-exception-value xreply))
("traceback"
. ,(list->vector
(execute-reply-traceback xreply)))))))
(execute-reply-traceback xreply))))))
#:kernel-socket kernel-iopub)
(send-message kernel
(reply message "execute_result"
(scm->json-string
......@@ -173,12 +174,13 @@ from the evaluation of CODE, a string."
(data
`(("text/plain"
. ,(object->string result))))))))
#:kernel-socket kernel-shell))
#:kernel-socket kernel-iopub))
(send-message kernel
(reply message "execute_reply"
(scm->json-string
(execute-reply->json xreply)))
#:recipient (message-sender message)
#:kernel-socket kernel-shell)
(pub-idle kernel message)
(+ 1 counter))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment