emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] Setting python interpreter version on per-block or per-subtree basis
@ 2014-04-24 17:04 William Henney
  2014-04-25  1:59 ` Sacha Chua
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: William Henney @ 2014-04-24 17:04 UTC (permalink / raw)
  To: emacs-org

[-- Attachment #1: Type: text/plain, Size: 678 bytes --]

Hi

Is there an easy way to specify the python version to use for a particular
block or sub-tree?

My use case is that I have mainly migrated to python 3, but there is still
the occasional library that has not been updated yet, so I need to fall
back to python 2.7 for some tasks.

I can work around the problem by putting the python 2 code in a separate
org file and use

# Local Variables:
# org-babel-python-command: "/path/to/python2"
# End:

but keeping everything in the same file would be preferable.

Thanks

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

[-- Attachment #2: Type: text/html, Size: 919 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-25 18:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24 17:04 [babel] Setting python interpreter version on per-block or per-subtree basis William Henney
2014-04-25  1:59 ` Sacha Chua
2014-04-25  9:00 ` Ian Barton
2014-04-25 15:27 ` Eric Schulte
2014-04-25 16:29   ` William Henney
2014-04-25 18:04     ` Eric Schulte

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).