From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-babel and python3 Date: Wed, 10 Aug 2011 16:48:50 +0200 Message-ID: <87k4alxqy5.fsf@gmail.com> References: <871uwtpdft.fsf@bye.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrA49-0006Yd-Ev for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 10:47:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrA48-00007P-E6 for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 10:47:29 -0400 Received: from lo.gmane.org ([80.91.229.12]:33703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrA48-00007F-95 for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 10:47:28 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QrA44-0007oD-2p for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 16:47:24 +0200 Received: from 194.94.206.186 ([194.94.206.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Aug 2011 16:47:24 +0200 Received: from rasmus by 194.94.206.186 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Aug 2011 16:47:24 +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: emacs-orgmode@gnu.org henry atting 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. I never managed to get Python2/3 working well in Org-mode, -- Sent from my Emacs