From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atting Subject: Re: org-babel and python3 Date: Wed, 10 Aug 2011 17:04:50 +0200 Message-ID: <87k4almhnx.fsf@bye.fritz.box> References: <871uwtpdft.fsf@bye.fritz.box> <87k4alxqy5.fsf@gmail.com> 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]:55061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrAKV-0000qo-GD for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 11:04:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QrAKQ-0003lg-Gk for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 11:04:23 -0400 Received: from lo.gmane.org ([80.91.229.12]:52879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QrAKQ-0003lQ-8y for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 11:04:18 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QrAKM-0000La-SG for emacs-orgmode@gnu.org; Wed, 10 Aug 2011 17:04:14 +0200 Received: from port-92-195-46-144.dynamic.qsc.de ([92.195.46.144]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Aug 2011 17:04:14 +0200 Received: from nsmp_02 by port-92-195-46-144.dynamic.qsc.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Aug 2011 17:04:14 +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 Rasmus writes: > 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. 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