all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Changing the environment before calling source block?
@ 2021-03-15 14:59 Loris Bennett
  2021-10-03  6:55 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Loris Bennett @ 2021-03-15 14:59 UTC (permalink / raw)
  To: Org Mode Mailing List

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.


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

end of thread, other threads:[~2021-10-03  6:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-15 14:59 Changing the environment before calling source block? Loris Bennett
2021-10-03  6:55 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.