visualizeutilsdisplay_animation_from_images

display_animation_from_images

visualize.utils.display_animation_from_images(files, interval=10, style=False, animID=None, embedded=False)

Creates an IPython animation out of files specified in a globstring or a list of paths.

Parameters:
  • files (list | str) – list of images, a directory with images or a list of directories with images

  • interval (int | float) – time interval between frames in ms.

  • style (bool) – whether to use the default style or not.

  • animID (int) – unique integer to identify the animation in the javascript environment of IPython

  • embedded (bool) – whether to embed the images in the html file or not.

Returns:

None. Displays the animation in the notebook.

Attention

The paths need to be relative to the location of the ipynb / html file, since the are resolved in the browser and not by python