From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Wish: babel for python3 Date: Sat, 15 Oct 2011 10:09:24 -1000 Message-ID: References: <87y5wntz12.fsf@yahoo.de> <87ipnq6r0b.fsf@gmail.com> <1641361.izftS2FJEB@fluss> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFAY2-0004WI-5k for emacs-orgmode@gnu.org; Sat, 15 Oct 2011 16:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFAY0-0000lp-Pd for emacs-orgmode@gnu.org; Sat, 15 Oct 2011 16:09:34 -0400 Received: from oproxy9.bluehost.com ([69.89.24.6]:37700) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RFAY0-0000ll-CI for emacs-orgmode@gnu.org; Sat, 15 Oct 2011 16:09:32 -0400 In-Reply-To: <1641361.izftS2FJEB@fluss> (Arne Babenhauserheide's message of "Sat, 15 Oct 2011 20:52:36 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Arne Babenhauserheide Cc: emacs-orgmode@gnu.org Arne Babenhauserheide writes: > Hi Eric,=20 > > Can I then still use babel for python 2.x? I need it for both, because I = have=20 > python3 and python2 projects.=20 > > Best wishes,=20 > 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#Sp= ecifying-File-Variables. Something like: -*- org-babel-python-command: "python3" hth, Tom > > Am Samstag, 15. Oktober 2011, 12:36:52 schrieb Eric Schulte: >> Hi Arne, >>=20 >> I think you can simply add the following to your configuration to use >> python3 as your python executable. >>=20 >> (setq org-babel-python-command "python3") >>=20 >> Best -- Eric >>=20 >> Arne Babenhauserheide writes: >> > Hi, >> >=20 >> > I=E2=80=99d love to have babel for python3. >> >=20 >> > 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=E2=80=A6 >> >=20 >> > Is there a way to get python3 support for Babel into org-mode cleanly? >> >=20 >> > Best wishes, >> > Arne > > -- > Ein W=C3=BCrfel System - einfach saubere Regeln:=20 > > - http://1w6.org > --=20 Thomas S. Dye http://www.tsdye.com