%%capture from IPython.display import HTML from matplotlib import animation plt.rcParams["animation.bitrate"] = 3000