$EvaluationEnvironment

$EvaluationEnvironment

gives a string indicating the type of local or cloud environment in which the current Wolfram Language evaluation is being performed.

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

Examples

open allclose all

Basic Examples  (2)

In an interactive session, the evaluation environment is "Session":

In[1]:=
Click for copyable input
Out[1]=

Evaluation in the cloud gives a different result:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

See Also

EvaluationEnvironment  $CloudEvaluation  HTTPRequestData  $Notebooks  $CommandLine  $EvaluationCloudObject  ScheduledTask  InitializationValue

Introduced in 2014
(10.0)