I'm trying to get some tensorflow code running inside of a Jupyter notebook that I have. I have the Python extension for IntelliJ Ultimate Edition, and have the notebook set up. I have some simple test code that I am trying to run:
import tensorflow as tf
print(tf.__version__)
When I run it inside of a .py file, I get the output that I am expecting (2.2.0). When I run it inside of a Jupyter Notebook, however, I get
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-10-f83c6d50081b> in <module>
----> 1 import tensorflow as tf
2 print(tf.__version__)
ModuleNotFoundError: No module named 'tensorflow'
It seems that the imports are not working inside of the Jupyter Notebook? Do I have to do any extra setup for the import statements to work? I have tensorflow installed in my system (I used pip), and I have tensorflow inside of my SDK Package list in IntelliJ.