title: Python/Jupyter notebook in VSCode does not use the right environment
body: <h1>The situation</h1>
  
  <p>I use Anaconda 3 on Windows 10.</p>
  
  <p>I have a Visual Studio Code workspace (<code>my_workspace</code>) than contains a Jupyter notebook (<code>my_notebook.ipynb</code>). VSCode has the Python extension installed.</p>
  
  <p>The file <code>my_workspace/settings.json</code> contains:</p>
  
  <pre><code>{
      "python.pythonPath": "C:\\Users\\Me\\Anaconda3\\envs\\my_env\\python.exe"
  }
  </code></pre>
  
  <p><code>my_env</code> is an existing Anaconda environment. I can activate it and work with it in a shell, and if I run <code>jupyter lab</code> in such a shell, the code inside the notebooks can import <code>my_env</code>'s packages as expected.</p>
  
  <p>If I open <code>my_workspace</code> in VSCode, then <code>my_notebook.ipynb</code> in a tab, <code>my_env</code> is also mentioned in VSCode's status bar ("Python 3.7.6 64-bit ('my_env': conda)"), and <code>my_env</code> is automatically activated when I open a PowerShell prompt in VSCode's console (I ran <code>conda init</code> once).</p>
  
  <h1>The problem</h1>
  
  <p>When the notebook is opened in VSCode, the Jupyter kernel seems to use the <code>base</code> environment's Python interpreter instead of the one in <code>my_env</code>. When importing a package installed in <code>my_env</code>, but not in <code>base</code>, I get this error:</p>
  
  <pre><code>&gt;&gt;&gt; import keras
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ModuleNotFoundError: No module named 'keras'
  </code></pre>
  
  <p>This happens for all packages, not just <code>keras</code>.</p>
  
  <p>In the notebook tab in VSCode, if I click on the interpreter's name in the top-right corner, then choose the correct interpreter (the one in <code>my_env</code>), then the notebook runs correctly in <code>my_env</code>. But I have to do this every time I re-open VSCode.</p>
  
  <p>How to make the default kernel respect the environment chosen in <code>settings.json</code>?</p>