EvaluationEnvironment

EvaluationEnvironment

is an option for functions such as InitializationValue and InitializationObjects that specifies the environment in which an initialization is intended to be used.

Details

  • Typical values for EvaluationEnvironment include:
  • "Session"local or cloud interactive session
    "Script"script run in batch mode
    "Subkernel"parallel or grid subkernel
    "WebAPI"API called through an HTTP request
    "Scheduled"scheduled task
  • The default setting is EvaluationEnvironment:>Automatic.

Examples

Basic Examples  (1)

Set an initialization value for parallel subkernels:

In[1]:=
Click for copyable input

All newly launched parallel subkernels use the given value:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

See Also

Initialize  InitializationObjects  $EvaluationEnvironment

Introduced in 2017
(11.2)