Skip to content

Instantly share code, notes, and snippets.

View nickmasonsmith's full-sized avatar

Nick Mason-Smith nickmasonsmith

  • Indigo Power
  • Beechworth, Australia
View GitHub Profile
@nickmasonsmith
nickmasonsmith / jupyter_animation.py
Created July 19, 2021 04:51 — forked from foolishflyfox/jupyter_animation.py
Display sequence images or dynamic function as an animation in jupyter notebook
import matplotlib.pyplot as plt
from matplotlib import animation
from IPython.display import display, HTML
import numpy as np
def plot_sequence_images(image_array):
''' Display images sequence as an animation in jupyter notebook
Args:
image_array(numpy.ndarray): image_array.shape equal to (num_images, height, width, num_channels)