Ask Your Question

Revision history [back]

The documentation of a.show:

  sage: t = var('t')
  sage: a = animate((cos(c*pi*t) for c in sxrange(1,2,.2)))
  sage: a.show?

says:

...
* "iterations" -- integer (default: 0); number of iterations of
  animation. If 0, loop forever.
...

So you may do:

sage: a.show(iterations=3)

to have the animation stop after 3 iterations.