I'm trying to run the sample clickable interact given by William Stein at http://permalink.gmane.org/gmane.comp.mathematics.sage.cloud/750, but nothing happens when I click on the image. The code is
@interact
def f0(fun=x*sin(x), mousemove='', click=''):
g = plot(fun, (0,5))
def h(p):
f0.mousemove = p
def c(p):
print "click"
f0.click = p
show(g, events={'click':c, 'mousemove':h}, gridlines=True, fig_tight=False)
Also, what is p
in this code? Is there any documentation on clickable interacts in SMC?