emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: wrong python version when using :session
Date: Mon, 05 Sep 2011 23:26:46 +0100	[thread overview]
Message-ID: <87d3fewrq1.fsf@bill.home> (raw)
In-Reply-To: <87vct6q4d2.fsf@gmail.com> (Eric Schulte's message of "Mon, 05 Sep 2011 11:35:37 -0600")


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

      reply	other threads:[~2011-09-05 22:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-05 17:28 wrong python version when using :session Myles English
2011-09-05 17:35 ` Eric Schulte
2011-09-05 22:26   ` Myles English [this message]

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=87d3fewrq1.fsf@bill.home \
    --to=mylesenglish@gmail.com \
    --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).