emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Changing the environment before calling source block?
Date: Mon, 15 Mar 2021 15:59:37 +0100	[thread overview]
Message-ID: <87ft0wea3q.fsf@hornfels.zedat.fu-berlin.de> (raw)

Hi,

I have multiple versions of each of various languages such as Python
or R.  On the command line I can select a version using the 'module'[1]
mechanism provided by Lmod[2]:

  module load Python/2.7.18-GCCcore-9.3.0

or 

  module load Python/3.8.6-GCCcore-10.2.0
 
This 'module' mechanism basically just provides a sane way to tweak and
untweak environment variables.

My question is: How do I change the environment, ideally call 'module
load ...' but potentially just set environment variables, before calling
a source block?

Cheers,

Loris

Footnotes: 
[1]  Nothing to do with Python modules
[2]  https://lmod.readthedocs.io/en/latest/index.html

-- 
This signature is currently under construction.


             reply	other threads:[~2021-03-15 15:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-15 14:59 Loris Bennett [this message]
2021-10-03  6:55 ` Changing the environment before calling source block? Ihor Radchenko

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=87ft0wea3q.fsf@hornfels.zedat.fu-berlin.de \
    --to=loris.bennett@fu-berlin.de \
    --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).