Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9dca44b5 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

kernels: Rename 'sxml->html-string' to 'sxml->xml-string'.

* jupyter/kernels.scm (sxml->html-string): Rename to...
(sxml->xml-string): ... this.
(reply-shtml): Adjust accordingly.
* guix-jupyter-kernel.scm (reply-for-environment-kernel): Likewise.
* guix/jupyter/kernel.scm (build-event-reporter)
(call-with-build-progress-report): Likewise.
parent d9497412
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ NAME with MANIFEST." ...@@ -143,7 +143,7 @@ NAME with MANIFEST."
(scm->json-string (scm->json-string
`(("data" . `(("data" .
(("text/html" (("text/html"
. ,(sxml->html-string . ,(sxml->xml-string
`(div `(div
"Running " "Running "
,(kernel-specs-display-name specs) ,(kernel-specs-display-name specs)
......
...@@ -200,7 +200,7 @@ monadic value, a <kernel> connected to that process." ...@@ -200,7 +200,7 @@ monadic value, a <kernel> connected to that process."
(scm->json-string (scm->json-string
`(("data" `(("data"
. (("text/html" . (("text/html"
. ,(sxml->html-string shtml)))) . ,(sxml->xml-string shtml))))
("metadata" . ()) ("metadata" . ())
("transient" ("transient"
. (("display_id" . ,display-id)))))) . (("display_id" . ,display-id))))))
...@@ -227,7 +227,7 @@ monadic value, a <kernel> connected to that process." ...@@ -227,7 +227,7 @@ monadic value, a <kernel> connected to that process."
(scm->json-string (scm->json-string
`(("data" `(("data"
. (("text/html" . (("text/html"
. ,(sxml->html-string . ,(sxml->xml-string
`(div "Preparing things..."))))) `(div "Preparing things...")))))
("metadata" . ()) ("metadata" . ())
("transient" ("transient"
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
pub-busy pub-busy
pub-idle pub-idle
sxml->html-string sxml->xml-string
reply-shtml reply-shtml
close-kernel)) close-kernel))
...@@ -467,7 +467,7 @@ identity (bytevector)." ...@@ -467,7 +467,7 @@ identity (bytevector)."
;; Reply. ;; Reply.
;; ;;
(define (sxml->html-string sxml) (define (sxml->xml-string sxml)
(call-with-output-string (call-with-output-string
(lambda (port) (lambda (port)
(sxml->xml sxml port)))) (sxml->xml sxml port))))
...@@ -479,7 +479,7 @@ identity (bytevector)." ...@@ -479,7 +479,7 @@ identity (bytevector)."
(empty-object '()) (empty-object '())
(counter (+ count 1)) ;execution counter (counter (+ count 1)) ;execution counter
(html (sxml->html-string shtml)) (html (sxml->xml-string shtml))
(send (lambda (socket type content) (send (lambda (socket type content)
(send-message kernel (send-message kernel
(reply message type (reply message type
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment