mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
fix(org): omit -i switch from org-babel-python-command
The -i switch for python or ipython can cause python org src blocks to hang indefinitely when executed. Ref: hlissner/doom-emacs@c0d988fe0d Ref: #5569
This commit is contained in:
@ -310,7 +310,12 @@ Also adds support for a `:sync' parameter to override `:async'."
|
|||||||
(after! python
|
(after! python
|
||||||
(unless org-babel-python-command
|
(unless org-babel-python-command
|
||||||
(setq org-babel-python-command
|
(setq org-babel-python-command
|
||||||
(concat python-shell-interpreter " " python-shell-interpreter-args))))
|
(string-trim
|
||||||
|
(concat python-shell-interpreter " "
|
||||||
|
(if (string-match-p "\\<i?python[23]?$" python-shell-interpreter)
|
||||||
|
(replace-regexp-in-string
|
||||||
|
"\\(^\\| \\)-i\\( \\|$\\)" " " python-shell-interpreter-args)
|
||||||
|
python-shell-interpreter-args))))))
|
||||||
|
|
||||||
(after! ob-ditaa
|
(after! ob-ditaa
|
||||||
;; TODO Should be fixed upstream
|
;; TODO Should be fixed upstream
|
||||||
|
Reference in New Issue
Block a user