Skip to content

Instantly share code, notes, and snippets.

View JunbongJang's full-sized avatar
🏔️
Work

Junbong Jang JunbongJang

🏔️
Work
View GitHub Profile
@foolishflyfox
foolishflyfox / jupyter_animation.py
Last active January 14, 2025 01:31
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)