From: henry atting <nsmp_02@online.de>
To: emacs-orgmode@gnu.org
Subject: Re: org-babel and python3
Date: Wed, 10 Aug 2011 17:04:50 +0200 [thread overview]
Message-ID: <87k4almhnx.fsf@bye.fritz.box> (raw)
In-Reply-To: 87k4alxqy5.fsf@gmail.com
Rasmus <rasmus@gmx.us> writes:
> henry atting <nsmp_02@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
prev parent reply other threads:[~2011-08-10 15:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 14:07 org-babel and python3 henry atting
2011-08-10 14:48 ` Rasmus
2011-08-10 15:04 ` henry atting [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4almhnx.fsf@bye.fritz.box \
--to=nsmp_02@online.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).