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 0480c47 commit 2b5eaecCopy full SHA for 2b5eaec
jupyter-kernelspec.el
@@ -76,8 +76,10 @@ REFRESH."
76
(or (and (not refresh) (gethash host jupyter--kernelspecs))
77
(let ((specs
78
(plist-get
79
- (let ((json (or (jupyter-command "kernelspec" "list"
80
- "--json" "--log-level" "ERROR")
+ (let ((json (or (let* ((jupyter-output (jupyter-command "kernelspec" "list"
+ "--json" "--log-level" "ERROR"))
81
+ (json-start (string-match-p (rx line-start "{") jupyter-output)))
82
+ (and json-start (substring jupyter-output json-start)))
83
(error "\
84
Can't obtain kernelspecs from jupyter shell command"))))
85
(condition-case nil
0 commit comments