Wolfram|Alpha Widgets (January 15, 2011)

Posted: January 15, 2011 by Mike Hubbartt in Academia, Software Reviews
Tags: , , , , ,

By Mike Hubbartt, © Copyright 2011, All Rights Reserved.

This afternoon I read an email in my St. Thomas account about the new Wolfram mobile apps for the iPhone/iTouch/iPad and Android, so I went to their site to see what they had to offer. There are three new Wolfram Course Assistance Apps for students ( Algebra, Calculus, and Music Theory) but more are planned for a lot of other courses. I checked out the Music Theory app and it was $1.99 at iTunes.

Then I noticed the Developer Products menu at the top and checked it out. You can download API documentation, download a widget for your website or blog, or build your own widget. I’m a developer, so I decided to build a widget.

Before getting started I decided to watch the demo video from Wolfram and it is very clear. So clear I wondered if it really was as easy as it was portrayed in the video. The demo example retrieved the distance between two cities. After retrieving the information, the speaker showed it is simple to replace the names of the initial cities with variables, and it is easy to add custom labels for the variables. He then showed how easy it is to change the color of the widget, to set the widget titlebar, and a description for users.

Being an amateur astronomer, the choice of topic for my widget was simple. Yes, astronomy. I tried some code I wrote that runs in a Mathematica workbook (it retrieves images of the 8 planets in our solar system) but it didn’t work. I then just tried ‘planets’ and it worked exactly as I hoped.

All you have to do is decide what type of data you want to retrieve and then enter that into the Wolfram|Alpha site. If the site understands the query, it returns the requested data. After seeing my query retrieved information on all of the planets (including images), I created the widget but changed planets to a variable so users can specify a planet of their choice. I entered Jupiter and tested it, and it worked – a lot of good data, Jupiter’s current location in the solar system, and a picture of the largest planet in the solar system. So simple.

I saved my widget with the name Planets in Our Solar System, and you can check it out in the Astronomy section of the Wolfram website at http://developer.wolframalpha.com/widgets/.

You have to check this out  – go to Wolfram’s site and look at all of the available widgets. Watch the demo video, then create your own widget for yourself or for others. The only thing I’d mention is that I was unable to embed my widget on this site – I don’t host my own copy of WordPress and had not found a way to be able to add it with my current configuration. I am amazed how little effort it takes to create a widget and hope our readers will explore this aspect of Wolfram|Alpha.

Easy, fun, useful, and free. How can you beat that?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s