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

I'm using Mathematica for Students on a Mac. How do I export a CDF document to HTML? According to the Wolfram website I should click on File > Deploy > Export as HTML. But I do not see the Deploy contextual menu item in my File menu. Has it been moved on the Mac version?

share|improve this question
What OS are you using? – rcollyer Apr 23 '12 at 0:17
Mac OS X 10.7; Mathematica 8 – Michael Apr 23 '12 at 0:34
Hmm, didn't read far enough, I see. On my machine (OS X 10.6.8 - MMA v.8), Deploy is the fifth item from the bottom. It is right above Install and the 3 printing commands. – rcollyer Apr 23 '12 at 0:45
@rcollyer What licence do you have? I'm using Mathematica Home Edition v. 8.0.4 for OS X, and there is no menu item called Deploy in my version either. – Heike Apr 29 '12 at 9:37
@Heike I'm running the Student Edition v8.0.4. – rcollyer Apr 29 '12 at 12:56

You do not really need a tool to depoly your CDF to HTML. It is very simple to do by hand. Here is what I do

  1. open your text editor and create a file called index.htm

    <BODY >
    This is my CDF
    <script src=""
    type="text/javascript"></script><script type="text/javascript">// 
    var cdf = new cdf_plugin();
    cdf.addCDFObject("source", "source.cdf",840,1435);
    // ]]></script>
  2. From Mathematica, save your notebook as source.cdf (using SAVE AS->CDF). Save it to the same folder your created the above index.htm file to. So now your folder have 2 files in it: source.cdf and index.htm

  3. use your ftp program and upload these 2 files to your web site tree where you want to put them.
  4. that is all. Click on the index.htm and will run the CDF.

ps. If you want to just show the Manipulate part in your CDF and not the code around it, then before doing SAVE AS, select the code cells and do CELL->CELL properties-> and un check the open option so that the cell becomes closed.

So that the code cells (or any other cell you choose to close) are not open for view. This way, when someone sees your CDF, they only see the GUI part (i.e. the manipulate) and not any other cell you did not want them to see).

share|improve this answer
Hi, I don`t understand what am I supposed to replace your "This is my CDF" by. Is it the path to the file ? – 500 Oct 1 '12 at 19:11

The deploy functionality was introduced in Mathematica 8.0.4. To my knowledge, it is not available in, see the changelog.

share|improve this answer
Okay I have installed. I will update my software. Thanks! – Michael Apr 23 '12 at 3:45

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.