[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-babel and python3
From: |
henry atting |
Subject: |
Re: [O] org-babel and python3 |
Date: |
Wed, 10 Aug 2011 17:04:50 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Rasmus <address@hidden> writes:
> henry atting <address@hidden> 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