I had a following code:
DynamicModule[{pts = {{0, 0}, {1, 1}, {2, 0}, {3, 2}}},
LocatorPane[Dynamic[pts],
Dynamic[Plot[InterpolatingPolynomial[pts, x], {x, 0, 3},
PlotRange → 3]]]]
This works fine in Mathematica desktop
But this same code is not working properly when I deploy it cloud:
CloudDeploy[DynamicModule[{pts = {{0, 0}, {1, 1}, {2, 0}, {3, 2}}},
LocatorPane[Dynamic[pts],
Dynamic[Plot[InterpolatingPolynomial[pts, x], {x, 0, 3},
PlotRange → 3]]]]]
May I kindly request to know if I am missing something here.
The code works now in the cloud without the CloudDeploy[] wrapper. I’ve tested it in the sandbox. I like the latter but can’t wrap my Head[] around Dynamic[]. I am doing the WL101 course and Dynamic[] with its related tutorials and Lou videos is imho the single most difficult and complex core vocab item to understand well enough for any confidential application by myself on my own.