How to | Deploy a Notebook for Player

In Mathematica 8, Mathematica Player notebook files (.nbp) have been replaced by Computable Document Format (.cdf) files. Mathematica Player notebook files can still be used for deployment to earlier Mathematica installations and installations of Mathematica Player. For information on creating and deploying .cdf files for viewing in Wolfram CDF Player, please see How to: Create a Computable Document Format (CDF) File.

Ordinary Mathematica notebooks can be opened by non-Mathematica users using the free product Mathematica Player, which lets users view, print, and interact with live computations, but does not let them edit programs or write new content. While giving you flexibility in collaborative work and education, making a notebook available for Mathematica Player also lets you share your work with the world as part of the Wolfram Demonstrations Project.

The freely available Mathematica Player can be used to read any notebook created with Mathematica. To let people play and interact with the live content in your notebook in Player, you must first deploy your notebook for Player by using the Publish for Player website.

For live interactive content to work properly in Player, it must be completely contained. That is, any commands inside the interactive content must not depend on commands outside the interactive content. For example, this Manipulate uses A, which is defined outside of the Manipulate:

Click for copyable input
Click for copyable input

If you quit Mathematica or the kernel and open the notebook again, the Manipulate does not function properly because the definition for A has been lost. Quitting Mathematica or the kernel and opening a notebook again is a good way to test if your interactive content will work properly when deployed using Player.

To fix this, set the option SaveDefinitions to True in the Manipulate and reevaluate. This embeds any outside definitions the Manipulate depends on into the output:

Click for copyable input

You are now ready to deploy a notebook with this example to Player. While you can open notebooks in Player without deploying them first, live interactive content will not display properly without being deployed.

Begin deploying your notebook for Player by going to the Publish for Player website. You can get to this site by using the link in this How to, or by going to the main page,, and following the Player links until you see a link to Publish for Player.

On the Publish for Player website, select how you will distribute your notebook after conversion. The publishing process will not actually distribute your notebook; it simply adds the appropriate licensing stripe to the top of your notebook. Here, the publicly accessible option is selected:

Next, select the Browse... (Windows) or Choose File (Macintosh) button, select the file you wish to deploy for Player, and then select Continue:

On the next screen, enter your information and select Convert Now.

You will receive an email with a link to download your converted notebook. Click on the link to download the notebook.

You will see that the converted notebook has a different icon than a typical Mathematica notebook. This is because it has the file extension .nbp, indicating it can be opened in Player: