[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] wrong python version when using :session
From: |
Myles English |
Subject: |
Re: [O] wrong python version when using :session |
Date: |
Mon, 05 Sep 2011 23:26:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Eric,
>> On Mon, 05 Sep 2011 11:35:37 -0600, Eric Schulte said:
> Hi Myles, The `org-babel-python-command' variable is used to decide
> which python executable is used to run non-interactive python code.
> Session evaluation is performed using the interactive python mode
> defined in the `org-babel-python-mode' variable.
The distinction had not occurred to me and of course it should have.
> From there the selected interactive python back-end is responsible
> for all python interaction and you would want to look at the
> relevant documentation for that tool to find out how to specify
> which flavor of python is used.
So for python-mode, the value of py-python-command decides the python
version:
(setq org-babel-python-command "python2"
org-babel-python-mode 'python-mode
py-python-command "python2"
)
> Hope this helps -- Eric
It did, thank you very much.
Myles