Environment set to desired interpreter (python 2.7) but python notebook being interpreted as python 3.6
I have a .ipynb file (python jupyter notebook) that was written in pthon 2.7. I can see that this is true because of the documentation and because the "print" statements mostly do not use () parenthesis, as would be the case for python 3.6.
But, the notebook code is being treated as if it was for pythong 3.6 as opposed to 2.7.
I have created an ENV with an interpreter that uses the kernel for python 2.7.

I have also set the run/configuration as I think that it should be:

And here is the code and the result after hitting the run button for that cell.

The bottom line is that pycharm is treating this code as if it were using a python 3. interpreter.
Thank You
Tom
Please sign in to leave a comment.