$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 interactive session
    "RemoteSession"remote interactive session
    "CDF"standalone CDF
    "Script"script run in batch mode
    "Subkernel"parallel or grid subkernel
    "WebEvaluation"direct URL evaluation
    "WebLoad"evaluation when loading a web page
    "WebAPI"API called through an HTTP request
    "WebForm"web form
    "WebServer"web server plugin (e.g. JSP)
    "CloudCDF"Cloud CDF
    "PlugInCDF"CDF web plugin
    "Scheduled"scheduled task
    "WSTP"WSTP call

Examples

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]=

See Also

$CloudEvaluation  HTTPRequestData  $Notebooks  $CommandLine  $EvaluationCloudObject  ScheduledTask  PersistenceLocation

Introduced in 2014
(10.0)