How to Solve NameError: name 'FuncAnimation' is not defined -- matplotlib

Solution: Import the 'FuncAnimation' module

To Solve the error, add the following line to the top of your code.

from matplotlib.animation import FuncAnimation

 

For more information:
Python matplotlib FuncAnimation