NameError

I wrote a function on PyCharm. However, the python console doesn't seem to recognize the name of my function after running it.

1 comment

Hi Franco,

You are trying to call the function from python console, which was most likely called on it's own (as a separate process) and doesn't know about your function.

Please edit your run/debug configuration, and enable checkbox "Run with python console", then run this configuration. You code will be executed and you can continue working in the console which will be aware of the objects created by your code.

0

Please sign in to leave a comment.