lang/org: improve jupyter support

Closes #2477

Co-authored-by: Seong Yong-ju <sei40kr@gmail.com>
This commit is contained in:
Henrik Lissner 2020-08-06 00:29:40 -04:00
parent 5a80db875c
commit bf9042327c
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -5,7 +5,10 @@
:defer t
:init
(after! ob-async
(pushnew! ob-async-no-async-languages-alist "jupyter-python" "jupyter-julia"))
(pushnew! ob-async-no-async-languages-alist
"jupyter-python"
"jupyter-julia"
"jupyter-R"))
(after! org-src
(dolist (lang '(python julia R))
@ -26,4 +29,12 @@
(require lang nil t)
(require 'ob-jupyter nil t)))))
:config
(defadvice! +org--ob-jupyter-initiate-session-a (&rest _)
:after #'org-babel-jupyter-initiate-session
(unless (bound-and-true-p jupyter-org-interaction-mode)
(jupyter-org-interaction-mode)))
;; Remove text/html since it's not human readable
(delq! :text/html jupyter-org-mime-types)
(require 'tramp))