Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Animating plots in Jupyter/Sagemath

I'm using SageMath 9.6 with Jupyter on OSX. I have a plot (psi_plot_1) that I want to animate:

plot_graph = [plot(psi_plot_1(x,t).real(),[x,0,1],color='red',ymin=-1.5,ymax=1.5) for t in sxrange(0,2,.1)]
a=animate(plot_graph)
a.show()

All I get is a statement saying "Animation 20 frames" rather than an actual animation. I tried installing ffmpeg and ImageMagick using brew from the OSX terminal, but the problems persist.

How do I get this to work? THanks, Eric