CloudEvaluate

CloudEvaluate[expr]

evaluates expr in the cloud and returns the result.

CloudEvaluate[expr,h]

wraps the head h around the result before returning it.

Details and Options

Examples

open allclose all

Basic Examples  (3)

Search for Mersenne primes in the cloud:

Evaluate machine-specific settings in the cloud:

Compare to the local result:

Supply a head to be applied to the results of a cloud evaluation:

Scope  (1)

Create a 3D contour plot in the cloud:

Use the cloud to identify the content of an image:

Use the cloud to do image analysis:

Generalizations & Extensions  (1)

Compare held and unheld cloud evaluations of a local variable (note the automatic cloud definition of g has been cleared):

Options  (2)

CloudBase  (1)

Evaluate on a specific cloud without changing $CloudBase:

IncludeDefinitions  (1)

Properties & Relations  (3)

CloudEvaluate shows any messages raised during the evaluation:

However, any other notebook manipulations, such as printed output, are not reproduced:

In a cloud evaluation, $CloudEvaluation is set to True:

Individual cloud evaluations typically run in separate processes:

Using CloudEvaluate during a cloud evaluation always runs in the same process:

Possible Issues  (1)

The result of the cloud evaluation is subject to evaluation in the local session. Multiple evaluations can result in multiple messages:

Apply the head Hold to prevent the second, local evaluation:

Introduced in 2014
 (10.0)
 |
Updated in 2015
 (10.2)
2019
 (12.0)