[sage-support] Re: Pause and Play button in interactive sage demos

2022-08-23 Thread Kwankyu
Animated plots may help you: https://doc.sagemath.org/html/en/reference/plotting/sage/plot/animate.html For play button, you may use interactive(). For example, x = SR.var("x") sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in range(0,1,.2)] a = animate(sines)

[sage-support] Re: Pause and Play button in interactive sage demos

2022-08-22 Thread kcrisman
This is a great question, but I don't think it's currently supported. However, there appears to be a Jupyter widget which supports this: https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20List.html#Play-(Animation)-widget so in principle we could add that to the Jupyter implementatio