{"id":107,"date":"2014-03-19T17:21:32","date_gmt":"2014-03-19T17:21:32","guid":{"rendered":"https:\/\/www.p-brane.com\/nm\/?p=107"},"modified":"2014-03-31T15:16:38","modified_gmt":"2014-03-31T15:16:38","slug":"all-cdf-should-use-savedefinitions-true","status":"publish","type":"post","link":"https:\/\/www.p-brane.com\/nm\/all-cdf-should-use-savedefinitions-true\/","title":{"rendered":"All CDFs should use SaveDefinitions->True"},"content":{"rendered":"<p>Getting CDFs to work when embedded in my blog was giving me fits. I would get to the point where the my model\u00a0 would work fine in a Mathematica mathbook, in a CDF preview, in the web-ready CDF run locally , but not when uploaded to my blog. Wolfram support advises that the option SaveDefinitions-&gt;True should be used in every CDF you create. <a title=\"SaveDefinitions Wolfram documentation\" href=\"http:\/\/reference.wolfram.com\/mathematica\/ref\/SaveDefinitions.html\">SaveDefinitions-&gt;True<\/a> preserves the internal state of all the variables for a CDF. I&#8217;ve used this now in CDF using Manipulate and DynamicModule and it definitely works.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting CDFs to work when embedded in my blog was giving me fits. I would get to the point where the my model\u00a0 would work fine in a Mathematica mathbook, in a CDF preview, in the web-ready CDF run locally , but not when uploaded to my blog. Wolfram support advises that the option SaveDefinitions-&gt;True [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,5],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/posts\/107"}],"collection":[{"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":4,"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/posts\/107\/revisions\/461"}],"wp:attachment":[{"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.p-brane.com\/nm\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}