Matplotlib library of python is a plotting tool used to plot graphs of functions or figures. Gif is a handy library that can transform your regular plots into dynamic, easily sharable animations, the library works well with matplotlib, plotly, altair, we can create animations based on various types of charts. From celluloid import camera # getting the camera import matplotlib.pyplot as plt import numpy as np from ipython.display import html # to show the animation in jupyter fig, ax = plt.subplots() # creating my fig camera = camera(fig)# the camera gets the fig we'll plot for i in range(10): In order to create an interactive plot in jupyter notebook, you. Ax.plot([i] * 5, c='black') # 5 element array from 0.