We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d20c0a commit b4be46bCopy full SHA for b4be46b
jupyter-kernelspec.el
@@ -61,7 +61,9 @@ each DIRECTORY will be a remote file name."
61
(or (and (not refresh) (gethash host jupyter--kernelspecs))
62
(let ((specs (plist-get
63
(jupyter-read-plist-from-string
64
- (or (jupyter-command "kernelspec" "list" "--json")
+ (or (let* ((jupyter-output (jupyter-command "kernelspec" "list" "--json"))
65
+ (json-start (string-match-p (rx line-start "{") jupyter-output)))
66
+ (and json-start (substring jupyter-output json-start)))
67
(error "Can't obtain kernelspecs from jupyter shell command")))
68
:kernelspecs)))
69
(puthash host
0 commit comments