How to Solve NameError: name 'HTML' is not defined -- IPython

Solution: Import the 'HTML' module

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

from IPython.display import HTML

 

For more information:
Python IPython HTML