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

Solution: Import the 'plot' module

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

from plotly.offline import plot

 

For more information:
Python plotly plot