Rasmus <ras...@gmx.us> writes:

> henry atting <nsmp...@online.de> writes:
>
>> How can I cause org-babel to use python3 instead of python2?
>> Emacs (in python-mode) already does it flawlessly with
>>
>> (setq py-python-command "/usr/bin/python3")
>
> There is a variable: 
>
> ┏━━━┫ org-babel-python-command ┃
> ┃ 
> ┃ org-babel-python-command is a variable defined in `ob-python.el'.  Its
> ┃ value is "python2"
> ┃ 
> ┃   This variable is potentially risky when used as a file local variable.
> ┃ 
> ┃ Documentation: Name of command for executing python code.
> ┃ 
> ┗━━━
>
> You could change it.

Thanks. I changed it and it seems org-mode is now using python3... 

> I never managed to get Python2/3 working well in Org-mode,

... but does not work well here too. So thanks again for this hint
which prevents me from spending to much time on it.

henry

-- 
http://literaturlatenight.de


Reply via email to