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
|
(use-package jupyter
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
: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
|
;; https://github.com/nnicandro/emacs-jupyter/issues/380#issuecomment-1014026589
|
||||||
(defun jupyter-ansi-color-apply-on-region (begin end)
|
;; (defun jupyter-ansi-color-apply-on-region (begin end)
|
||||||
(ansi-color-apply-on-region begin end t)))
|
;; (ansi-color-apply-on-region begin end t))
|
||||||
|
)
|
||||||
|
|
||||||
(use-package julia-mode
|
(use-package julia-mode
|
||||||
:straight t)
|
:straight t)
|
||||||
|
@ -718,7 +723,8 @@
|
||||||
(latex . t)
|
(latex . t)
|
||||||
(lisp . t)
|
(lisp . t)
|
||||||
(shell . t)
|
(shell . t)
|
||||||
(sqlite . t)))
|
(sqlite . t)
|
||||||
|
(jupyter . t)))
|
||||||
|
|
||||||
(setq org-confirm-babel-evaluate nil)
|
(setq org-confirm-babel-evaluate nil)
|
||||||
(add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images)
|
(add-hook 'org-babel-after-execute-hook 'org-redisplay-inline-images)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue