How to Solve NameError: name 'Layout' is not defined -- ipywidgets

Solution: Import the 'Layout' module

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

from ipywidgets import Layout

 

For more information:
Python ipywidgets Layout