Skip to content
Advertisement

“NameError: name ‘numpy’ is not defined” when calling eval()

JavaScript

The line for e2 (but not e1) generates an error:

JavaScript

Why?

Advertisement

Answer

I solved it by replacing:

JavaScript

with:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement