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.

Reply via email to