I get a "name 'y' is not defined" when evaluating in the Single Compute
Server
var('y')
@interact
def example(f=4*x*exp(-x^2-y^2)):
plot3d(f, (x, 0,1), (y,0,1)).show()
if I change, say, 'y^2' by 'y^3' (that is, the first plot is ok. The
error appears when changing the function). Nevertheless, the same code
works in the standard notebook.
Any hint?
Thanks,
Francisco
I just pasted your code into sagemath.org:5467 and up popped a plot;
there were no error messages.
Can you try again?
Thanks,
Jason
Thanks for clarifying. I see that in your original message now.
I tracked down where the problem is (it isn't evaluating changes in the
same context as the original function). We completely rewrote interacts
for the singlecell, and I've identified the code in the old interact
that implements the necessary feature. We'll work on fixing this bug,
which is tracked here:
https://github.com/jasongrout/simple-python-db-compute/pull/216
Thanks,
Jason