Wolfram Computation Meets Knowledge

The Wolfram Language:
Fast Introduction for Programmers

Show additional notes for:
All sections 
Get Started

Cloud Deployment

Notes for Java programmers:

The Wolfram Language has powerful built-in functions to deploy applications to the cloud. Typically, cloud deployment in Java relies on third-party IDE plugins such as the AWS Toolkit.

Notes for Python programmers:

The Wolfram Language has powerful built-in functions to instantly deploy applications to web and mobile. With seamless cloud integration, you can create dynamic web interfaces and APIs and host them immediately in the Wolfram Cloud with just a few lines of code, without needing to use any third-party frameworks like Flask or Django.

CloudDeploy deploys objects into the Wolfram Cloud.

Create a webpage that says "hello" in 100-point font:

In[1]:=1
CloudDeploy[Style["hello", 100]]
Out[1]=1

The cloud object is given a unique URL that you can visit in a browser:


Deploy a dynamic interface:

In[1]:=1
CloudDeploy[Manipulate[Rotate[Style["hello", 100], \[Theta] \[Degree]], {\[Theta], 0, 360}]]
Out[1]=1

The interface can be used in any browser:


Deploy anything from a notebook—dynamic or not—preserving its styling.

Use EmbedCode to set up embedding for iframes etc.

Use CloudDeploy[Delayed[...]] to deploy an expression that will be recomputed every time it is requested.


Create and deploy a form interface:

In[1]:=1
CloudDeploy[FormFunction[{"city" -> "City"}, GeoGraphics[#city] &, "PNG"]]
Out[1]=1


Any Interpreter type can be used for a field in a form:

In[2]:=2
CloudDeploy[FormFunction[{"place" -> "Location", "radius" -> "Quantity"}, GeoGraphics[GeoDisk[#place, #radius]] &, "PNG"]]
Out[2]=2


Semantic types lead to "Smart Fields," which interpret natural language:


Notes for Java programmers:

Smart Fields enable sophisticated parsing and validation of input using the semantic processing capabilities of the Wolfram Language. In Java, high-level input parsing, validation and processing requires custom code or additional libraries.

Notes for Python programmers:

Built-in smart fields exploit interpreters, enabling sophisticated parsing and validation of input using the semantic processing capabilities of the Wolfram Language. In Python, high-level input parsing, validation and processing require additional tools.


Deploy a web API in the cloud:

In[1]:=1
CloudDeploy[APIFunction[{"x" -> "Number"}, #x! &, "String"]]
Out[1]=1

Call the API:


Use Permissions-> "Public" to make a cloud deployment available publicly to anyone.
(Deployments use Wolfram Cloud Credits.)

QUICK REFERENCE: Cloud Deployment


© 2018 Wolfram. All rights reserved.