$EvaluationEnvironment
This feature relies on access to Wolfram Cloud.

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

DetailsDetails

  • 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 webpage
    "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

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

In an interactive session, the evaluation environment is :

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

Evaluation in the cloud gives a different result:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)