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 db8a9e2 commit 20e4a86Copy full SHA for 20e4a86
jupyter-kernelspec.el
@@ -103,8 +103,10 @@ REFRESH."
103
(or (and (not refresh) (jupyter-kernelspecs-cache-get host))
104
(let ((specs
105
(plist-get
106
- (let ((json (or (jupyter-command "kernelspec" "list"
107
- "--json" "--log-level" "ERROR")
+ (let ((json (or (let* ((jupyter-output (jupyter-command "kernelspec" "list"
+ "--json" "--log-level" "ERROR"))
108
+ (json-start (string-match-p (rx line-start "{") jupyter-output)))
109
+ (and json-start (substring jupyter-output json-start)))
110
(error "\
111
Can't obtain kernelspecs from jupyter shell command"))))
112
(condition-case nil
0 commit comments