mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00
Stability fixes.
Get the call signature correct, try to avoid always calling `ein:query-kernelspec`.
This commit is contained in:
parent
11a95db183
commit
7cab72cac3
1 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ jupyter kernels.
|
|||
(let* ((url-or-port (ein:org-babel-clean-url (car (split-string session "/"))))
|
||||
(path (ein:join-str "/" (rest (split-string session "/")))))
|
||||
(values url-or-port path)))
|
||||
(t (values (ein:org-babel-clean url session) nil))))
|
||||
(t (values (ein:org-babel-clean session) nil))))
|
||||
|
||||
(defcustom ein:org-babel-default-session-name "ein_babel_session.ipynb"
|
||||
"Default name for org babel sessions running ein environments.
|
||||
|
@ -157,7 +157,7 @@ given in the session parameter."
|
|||
(when (and (stringp session) (string= session "none"))
|
||||
(error "You must specify a notebook or kernelspec as the session variable for ein code blocks."))
|
||||
(multiple-value-bind (url-or-port path) (ein:org-babel-parse-session session)
|
||||
(if (null (gethash url-or-port ein:available-kernelspecs nil))
|
||||
(if (null (gethash url-or-port ein:available-kernelspecs))
|
||||
(ein:query-kernelspecs url-or-port))
|
||||
(if (null kernelspec)
|
||||
(setq kernelspec (ein:get-kernelspec url-or-port "default")))
|
||||
|
|
Loading…
Add table
Reference in a new issue