Update configuration for Jupyter
This commit is contained in:
parent
ecaf7d2535
commit
bfb6eafaae
1 changed files with 9 additions and 3 deletions
12
init.el
12
init.el
|
@ -382,9 +382,14 @@
|
|||
(use-package jupyter
|
||||
:straight t
|
||||
:config
|
||||
(setq org-babel-default-header-args:jupyter-python
|
||||
'((:async . "yes")
|
||||
(:session . "py")
|
||||
(:kernel . "python3")))
|
||||
;; https://github.com/nnicandro/emacs-jupyter/issues/380#issuecomment-1014026589
|
||||
(defun jupyter-ansi-color-apply-on-region (begin end)
|
||||
(ansi-color-apply-on-region begin end t)))
|
||||
;; (defun jupyter-ansi-color-apply-on-region (begin end)
|
||||
;; (ansi-color-apply-on-region begin end t))
|
||||
)
|
||||
|
||||
(use-package julia-mode
|
||||
:straight t)
|
||||
|
@ -718,7 +723,8 @@
|
|||
(latex . t)
|
||||
(lisp . t)
|
||||
(shell . t)
|
||||
(sqlite . t)))
|
||||
(sqlite . t)
|
||||
(jupyter . t)))
|
||||
|
||||
(setq org-confirm-babel-evaluate nil)
|
||||
(add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue