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

Solution: Import the 'clear_output' module

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

from IPython.display import clear_output

 

For more information:
Python IPython clear_output