Commit 7bbbe8ec authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

kernels: Make 'jupyter-kernel-path' a SRFI-39 parameter.

* jupyter/kernels.scm (jupyter-kernel-path): Make a parameter.
parent 1da53a23
...@@ -159,11 +159,11 @@ Return #f if SOCKET is not one of KERNEL's sockets." ...@@ -159,11 +159,11 @@ Return #f if SOCKET is not one of KERNEL's sockets."
"Close all the open connections of KERNEL." "Close all the open connections of KERNEL."
(for-each zmq-close-socket (kernel-sockets kernel))) (for-each zmq-close-socket (kernel-sockets kernel)))
(define (jupyter-kernel-path) (define jupyter-kernel-path
"Return the default search path for Jupyter kernels." ;; Default search path for Jupyter kernels.
(or (and=> (getenv "JUPYTER_PATH") (make-parameter (or (and=> (getenv "JUPYTER_PATH")
(cut string-split <> #\:)) (cut string-split <> #\:))
'())) '())))
(define* (find-kernel-specs kernel (define* (find-kernel-specs kernel
#:optional (path (jupyter-kernel-path))) #:optional (path (jupyter-kernel-path)))
......
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