How to Solve NameError: name 'display' is not defined -- IPython
Solution: Import the 'display' module
To Solve the error, add the following line to the top of your code.
from IPython import display
For more information:
Python IPython display