I have some complicated Manipulate[]
object that I'd like to make interactively available online. The function CloudDeploy[]
seems up for the task, but when I use it I get an online object that does not respond. The sliders and all work fine, but the thing inside just does not update.
The following example reproduces this behavior:
f[x_] := x^2
Manipulate[
Plot[a f[x], {x, -10, 10}, PlotRange -> {0, 100}],
{a, 0, 1}]
I get the same behavior regardless of whether I do CloudDeploy[]
on the Manipulate[]
object only, or on the entire thing. My guess is that it does not work because it's not a single expression, so the solution would be to massage all my functions into the Manipulate[]
expression, but that will be arduous to say the least, so I was wondering if there are better ways to go about this.