Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The new CDF (computable document format) lets you embed a Manipulate or other interactive graphics on your website, and users can play around with your little script using the free player.

What steps do I need to follow to

  1. Create the CDF file correctly so that it displays a static picture (that I choose) if the user doesn't have the player and fires up the player if they do?
  2. Make the necessary changes to my website/server to enable this?
share|improve this question
up vote 9 down vote accepted

This is just to update everyone on this topic. Wolfram Research released detailed blog and video tutorial "CDF Embedding in a Nutshell". It shows how to use built-in Mathematica wizard to deploy CDF online into HTML pages and Word Press blogs. URL:

share|improve this answer

For part 2, you must add the following to your <head> section

<script type="text/javascript" src=""></script>
<script type="text/javascript">
    var cdf = new cdfplugin();
    cdf.embed('/path/to/filename.cdf', width, height);

For part 1, you can embed a static picture for people with no CDF plugin by using the cdf.setDefaultContent function:

cdf.setDefaultContent('<p>Your replacement content</p>');
cdf.embed('/path/to/additional.cdf', width, height);

For more details, see the Web Delivery page.

share|improve this answer

You could look at the following:

That also explains, the wizard to create the html code for your web page.

Edit: OP wanted a precis:

Select you manipulate cell and choose (v.8.0.4): File -> Deploy. That will generate the HTML automaticaly.

share|improve this answer
I do not see it in 8.0.1 on OS X. is this Deploy menu item only in 8.0.4, only in windows, or am I missing something else? – acl Jan 23 '12 at 14:57
@acl, yes, this is one of the few new features in V8.0.4 – user21 Jan 23 '12 at 16:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.