Watch videos with subtitles in your language, upload your videos, create your own subtitles! Click here to learn more on "how to Dotsub"


0 (0 Likes / 0 Dislikes)
Welcome. I would like to thank you all for taking the time to watch this short talk introducing some of the features of the Wolfram Programming Cloud. In the Cloud you can access the same powerful Wolfram Language features our desktop users have been enjoying for years. What you’re looking at here is our Cloud notebook interface that allows you to interactively program and explore the Wolfram Language within a standard web browser—no plugins required. It runs the same version of the Wolfram engine that is in our latest desktop release. To illustrate some of what you can do in the Cloud, I thought I would show you how you can plan a summer drive vacation using the power of the Wolfram Language. Let’s start by picking some interesting places to visit around the country. I’ll use “control” “equal” to leverage Wolfram Alpha and it’s ability to interpret freeform input. We’ll start in Champaign, Illinois, world headquarters of Wolfram Research; I’ve always wanted to see Graceland; maybe I’ll pick up some cowboy boots in Houston, Texas; get a nice bottle of wine in Napa, California; catch a show in New York City; see the natural beauty of the Grand Canyon; and finally, Cawker City, Kansas, home of the world’s largest ball of twine. Now I can create a map to see the places I may go using our geoplotting capabilities. Now I like saving money and not wasting gas, so I’d like to know the most efficient way to visit all the destinations on my itinerary minimizing the distances I will have to drive. The Wolfram Language has a built-in function for doing just that called “FindShortestTour”. And I’ll save that so I can use it again. So now I see the order in which I should visit all the places I want to see and that I’ll be driving at least 5,667 miles— exact driving distances are going to be a little longer. I can add this to my map to show where I want to go and how I should get there. Now that’s pretty interesting. I bet I’m not the only one who would like to plan a road trip this way. Now I can use the Cloud to share my planner with other people. I’ll start by making a web form that’ll allow anyone to input locations and generate their own trip map. First I’ll have to find a function that computes the tour and creates the graphic like I just made interactively, reusing much of the same code. So I’ll use this to create the tour and then I can use this to create the graphic. This function actually takes positions rather than places, but it can be made to take places using plain English if I use “Interpreter”. “Interpreter” is a function that works like the interactive “control” “equal” box to convert text into Wolfram Language. For GeoGraphics, I want locations so I can use an interpreter specifying a location type like this. Here is how I can use an interpreter on some places to get the locations I need for my shortest trip map function. OK, so I promised that I would make something that is be accessible to anyone over the web. I can do that by creating a form function, which I then deploy. I can create a form that takes multiple places as entries, automatically transforms them using an interpreter, and passes the results to my mapping function to generate the result. Here is a simple form that can do that. Now I can deploy that form to the web. Notice how I don’t have to specify any code definitions or dependencies. “CloudDeploy” can automatically infer what is needed to ensure that the form works so I don’t have to. Let’s try it out. Now if I decide to embed that web form into another web page I can use “EmbedCode” to get exactly the code I need to do that. Here’s another way I can share my trip planner so it is useful if I want to integrate it with CNL. I can deploy an instant API rather than a web form and access the same service but through a rest web API. The syntax for “APIFunction” is very similar to that for “FormFunction” so I can reuse the rest. And now use “CloudDeploy”. Let’s try it out. If we want to call that API from, say, a JAVA app, I can again use “EmbedCode” to get the code I need to do that. With the Programming Cloud, you can not only create forms in APIs, you can also create and share documents and interactive content. One easy thing to do is just to share a whole notebook, which we can do by choosing “Publish Page” in the Deploy menu. Now this is viewable by anyone on the web. Here we’ve shared a static notebook that will allow you to just read and not interact with the notebook. We can make things a little more interesting by adding some dynamic content— in this case, a tool to enter two places and see the most direct path between them. If we redeploy the notebook as Cloud CDF visitors will be able to enter their own places and see a new map. This is just a sample of the kinds of things you can create and deploy in the Wolfram Cloud and I would really encourage you to try it out for yourself. You can get started for absolutely free by visiting and signing up. You have access to the full Wolfram Language and even some starter Cloud credits to try out deploying your own content. Well I hope you’ve enjoyed this brief introduction to the Wolfram Cloud. Thank you for taking some time to watch.

Video Details

Duration: 14 minutes and 31 seconds
Language: English
License: Dotsub - Standard License
Genre: None
Views: 9
Posted by: wolfram on May 15, 2015


Caption and Translate

    Sign In/Register for Dotsub to translate this video.