Mathematica Q&A Series: CDF Embedding in a Nutshell
Got questions about Mathematica? The Wolfram Blog has answers! We’ll regularly answer selected questions from users around the web. You can submit your question directly to the Q&A Team.
This week’s question comes from Tom, a teacher who wants to post his lessons online:
How can I use CDF to include Mathematica content on web pages?
Read below or watch this screencast for the answer (we recommend viewing it in full-screen mode):
We’re being asked this question more and more, and I am really glad to see how quickly the Computable Document Format (CDF) is being adopted. Whether you want to deliver your CDF content on your website or blog or as a desktop application, Mathematica 8.0.4 makes it quick and easy with a new CDF Web Deployment Wizard.
Once you’ve created your interactive content, select the cell you want to embed in your website. Choose File » Deploy » Embed in HTML… to begin processing your selection:
The CDF Standalone Deployment Wizard (File » Deploy » Standalone…) provides the same simple process for saving desktop apps.
If you host your own WordPress site, you can easily add CDF content to your posts or pages with the Wolfram CDF Plugin for WordPress. You will need to host the blog yourself or have permissions to upload supplemental files that the blog can access.
For further details on CDF deployment, see the Deploying CDF web page.
If you have a question you’d like answered in this blog, you can submit it to the Q&A Team. For daily bite-sized Mathematica tips, follow our @MathematicaTip Twitter feed.