Commit 8954b810 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

kernels: Add 'kernel-specs->json'.

* jupyter/kernels.scm (<kernel-specs>): Define 'kernel-specs->json'.
parent 78d429fe
......@@ -40,6 +40,7 @@
kernel-specs-display-name
kernel-specs-language
json->kernel-specs
kernel-specs->json
kernel
kernel?
......@@ -112,9 +113,9 @@
;; <https://jupyter-client.readthedocs.io/en/latest/kernels.html#kernel-specs>
(define-json-mapping <kernel-specs>
kernel-specs make-kernel-specs kernel-specs?
json->kernel-specs
json->kernel-specs <=> kernel-specs->json
(arguments kernel-specs-arguments
(json "argv" vector->list))
(json "argv" vector->list list->vector))
(display-name kernel-specs-display-name
(json "display_name"))
(language kernel-specs-language))
......
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