emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Wish: babel for python3
Date: Sat, 15 Oct 2011 10:09:24 -1000	[thread overview]
Message-ID: <m162jq10gb.fsf@tsdye.com> (raw)
In-Reply-To: <1641361.izftS2FJEB@fluss> (Arne Babenhauserheide's message of "Sat, 15 Oct 2011 20:52:36 +0200")

Arne Babenhauserheide <arne_bab@web.de> writes:

> Hi Eric, 
>
> Can I then still use babel for python 2.x? I need it for both, because I have 
> python3 and python2 projects. 
>
> Best wishes, 
> Arne

Aloha Arne,

If your projects are in different files, then you should be able to use
file variables:
http://www.gnu.org/s/libtool/manual/emacs/Specifying-File-Variables.html#Specifying-File-Variables.

Something like:
-*- org-babel-python-command: "python3"

hth,
Tom

>
> Am Samstag, 15. Oktober 2011, 12:36:52 schrieb Eric Schulte:
>> Hi Arne,
>> 
>> I think you can simply add the following to your configuration to use
>> python3 as your python executable.
>> 
>>   (setq org-babel-python-command "python3")
>> 
>> Best -- Eric
>> 
>> Arne Babenhauserheide <arne_bab@web.de> writes:
>> > Hi,
>> > 
>> > I’d love to have babel for python3.
>> > 
>> > My first shot at it would just be ob-python.el with each mention of
>> > python replaced by python3, but I hope that there is a more elegant
>> > way…
>> > 
>> > Is there a way to get python3 support for Babel into org-mode cleanly?
>> > 
>> > Best wishes,
>> > Arne
>
> --
> Ein Würfel System - einfach saubere Regeln: 
>
> - http://1w6.org
>

-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2011-10-15 20:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 14:42 Wish: babel for python3 Arne Babenhauserheide
2011-10-15 18:36 ` Eric Schulte
2011-10-15 18:52   ` Arne Babenhauserheide
2011-10-15 20:09     ` Thomas S. Dye [this message]
2011-10-15 20:29       ` Arne Babenhauserheide
2011-10-18  8:56         ` Torsten Wagner
2011-10-18 12:13           ` Rasmus

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=m162jq10gb.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=arne_bab@web.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).