I don't seem to understand CloudDeploy; it seems like it deploys a function, but not its dependent expressions. How should I deploy an expression that may have dependencies previously in the notebook?
For example, I evaluated the following expression:
f=Sin[x];CloudDeploy[Manipulate[Plot[f,{x,0,t}],{t,1,15}]]
I then visited the deployed page, and got a plot with no function.
This is a simplified version; in more complex ones, such as when PlotRange depends on something previously defined, I can see error messages.
It seems that CloudDeploy's deployed object definition isn't closed over the set of definitions in effect. However, the docs (at ref/CloudDeploy.html) specify that:
CloudDeploy[expr,…]automatically deploys all definitions needed to evaluate expr, much likeCloudSave.
Am I misunderstanding something here?
It's going to take a little thinking and practice to understand the difference between "needed to display" and "needed to evaluate". (In lambda calculus, the formalism I'm more used to, there's no difference.)
I'll look into the
– Piquan Sep 08 '16 at 07:45DynamicandDelayeddocs to see if I can understand it better.DynamicIntroductionToDynamic and typesetting Understanding evaluation and typesetting. And keep in mind that execution of those concepts may differ slightly in desktop and web world. – Kuba Sep 08 '16 at 07:53