How to Solve NameError: name 'Figure' is not defined -- plotly

Solution: Import the 'Figure' module

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

from plotly import Figure

 

For more information:
Python plotly Figure