From: Jack Kamm <jackk...@gmail.com> Date: Sun, 27 Jul 2025
17:19:51 -0700
Ihor Radchenko <yanta...@posteo.net> writes:
Anush V <j...@gnu.org> writes:
Hello Org Maintainers,
Is it possible to add an 'auto' option for the variable
org-babel-python-command-nonsession, similar to how
org-babel-python-command and org-babel-python-command-session
already support it?
I am not sure. 'auto implies `python-shell-interpreter', which
is "Python interpreter for interactive use". So, there is no
guarantee that it will work for
`org-babel-python-command-nonsession'.
As a possible example of this, I believe that the default value
of `python-shell-interpreter-args' ("-i") could cause hanging
(nonterminating Python command) if used in
`org-babel-python-command-nonsession'. See "man python":
-i When a script is passed as first argument or the -c
option is
used, enter interactive mode after executing the
script or the command.
That makes sense, thank you! For the 'auto case, could
`org-babel-python-command-nonsession'
perhaps use the values from `python-interpreter' and
`python-interpreter-args'?
--
Regards,
Anush Veeranala