Trying to save a gif on Jupyter but keep getting the error message:
ValueError: Cannot save animation: no writers are available. Please install mencoder or ffmpeg to save animations.
I have tried to install ffmpeg but this hasn't cleared my error message.
This is the code I have written.
import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('Agg')
anim.save('animation.gif', writer='imagemagick', fps = 30)