Hi all
So I had lots of trouble getting tensorflow to work in jupyter notebook, but after much trial and error and installing it in several different places not knowing what I was doing, I did what this guy said and it worked:
‘Solved no module named 'tensorflow'. Easiest Way to install TensorFlow For Anaconda on Windows 10. - YouTube 1’
He basically says to install tensorflow in anaconda, and then change from the base (root) environment to the tensorflow environment that we create and launch jupyter notebook from there, as shown in these images:
What I click:

image1045×386 33.6 KB

Proof that tensorflow works in jupyter notebook now:

Now I want tensorflow to work in VS Code, but following the same route as before doesn’t work. I go into the tensorflow/tf environment I created in anaconda, launch VS Code from there, open a jupyter notebook file in VS Code and it doesn’t work:
What I click:

image633×573 26.6 KB

Proof it doesn’t work:

image853×516 32.7 KB

So now that you know the story, my question is (and I’m crossing my fingers tightly hoping that someone knows how all this installing business works and why):

How do I get tensorflow to work in VS Code?

Thanks for your time
Jaime