From c93790bb5cbd8d70a778670b018442fc71f74727 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 28 Nov 2021 21:59:52 +0100 Subject: [PATCH] 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@c0d988fe0d4a Ref: #5569 --- modules/lang/org/config.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 24280177c..e1118a9bc 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -310,7 +310,12 @@ Also adds support for a `:sync' parameter to override `:async'." (after! python (unless 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 "\\