How to Solve NameError: name 'Layer' is not defined -- solcore

Solution: Import the 'Layer' module

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

from solcore import Layer

 

For more information:
Python solcore Layer