Image.animate#

InteractiveManager.animate(gifname: str | None = None, frames: int | None = None, interval: int = 500, updateslider: bool = True, script_relative: bool = False) None[source]#

Display the animation interactively.

Parameters:
- frames: int, default None

The number of frames in the animation.

- gifname: str, default None

The name of the GIF file.

- interval: int, default 500

The interval between frames in milliseconds.

- updateslider: bool, default True

If True, the slider is shown and updated with each frame.

Returns:
  • None

Examples

  • Example #1: Display the animation

    >>> animate()
    
  • Example #2: Display the animation with a specific number of frames

    >>> animate(frames=[0, 1, 2], interval=300)