Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error due to call intern on symbol #219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ob-ipython.el
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ The elements of the list have the form (\"kernel\" \"language\")."
(let* ((kernel (car kernel-lang))
(language (cdr kernel-lang))
(jupyter-lang (concat "jupyter-" language))
(mode (intern (or (cdr (assoc language org-src-lang-modes))
(replace-regexp-in-string "[0-9]*" "" language))))
(mode (or (cdr (assoc language org-src-lang-modes))
(intern (replace-regexp-in-string "[0-9]*" "" language))))
(header-args (intern (concat "org-babel-default-header-args:" jupyter-lang))))
(add-to-list 'org-src-lang-modes `(,jupyter-lang . ,mode))
;; Only set defaults if the corresponding variable is nil or does not
Expand All @@ -549,6 +549,7 @@ The elements of the list have the form (\"kernel\" \"language\")."
'org-babel-ipython-initiate-session)
kernel-lang))


(defun ob-ipython-auto-configure-kernels (&optional replace)
"Auto-configure kernels for use with org-babel based on the
available kernelspecs of the current jupyter installation. If
Expand Down