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

kernel: Send "kernel_info_reply" message on IOPub to placate new Notebook.

Fixes <https://issues.guix.gnu.org/49355>.
Reported by Domagoj Stolfa <ds815@gmx.com>.

* guix-jupyter-kernel.scm (reply-kernel-info-request): Send a reply on
'kernel-iopub' too.
parent 9c8e4c96
......@@ -120,10 +120,15 @@ was already an inferior associated with STATE, close it."
;; Send kernel-info.
(define (reply-kernel-info-request kernel kind message state)
(send-message kernel
(reply message "kernel_info_reply"
(scm->json-string
(kernel-info-reply->json %kernel-info-reply))))
(let ((body (scm->json-string
(kernel-info-reply->json %kernel-info-reply))))
(send-message kernel (reply message "kernel_info_reply" body))
;; Send an IOPub message as expected by Notebook 6.3.0 (failing to do
;; that, it "nudges" the kernel by re-sending "kernel_info_request"
;; messages).
(send-message kernel (reply message "kernel_info_reply" body)
#:kernel-socket kernel-iopub))
state)
(define (manifest->shtml manifest name)
......
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