title: Visual Studio Code Integrated Terminal not using correct Anaconda environment
body: <p>I am using Visual Studio Code for a Python project using an Anaconda environment.</p>
  
  <p>When I open up the integrated terminal I see this:</p>
  
  <pre><code>jim@main:~/Projects/ITP/thesis$ source /home/jim/INSTALL/anaconda3/bin/activate
  (base) jim@main:~/Projects/ITP/thesis$ conda activate research
  (research) jim@main:~/Projects/ITP/thesis$
  </code></pre>
  
  <p>The <code>source</code> and <code>conda</code> commands are typed for me because I have the Python => Terminal: Activate Environment open selected in my User Settings. It is attempting to activate the correct environment. This is also the environment I see in the bottom left of the window.</p>
  
  <p>The problem is when I try to use Python or IPython I find the wrong Python version is executed. The path is all wrong also.</p>
  
  <pre><code>(research) jim@main:~/Projects/ITP/thesis$ which python
  /home/jim/INSTALL/anaconda3/bin/python
  (research) jim@main:~/Projects/ITP/thesis$ which ipython
  /home/jim/INSTALL/anaconda3/bin/ipython
  (research) jim@main:~/Projects/ITP/thesis$ ipython
  Python 3.6.7 |Anaconda, Inc.| (default, Oct 23 2018, 19:16:44) 
  Type 'copyright', 'credits' or 'license' for more information
  IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
  
  In [1]: 
  </code></pre>
  
  <p>It is running Python from the default Anaconda environment, not the one that is supposedly activated. Here is the path:</p>
  
  <pre><code>In [1]: import sys
  
  In [2]: sys.path
  Out[2]: 
  ['',
   '/home/jim/INSTALL/anaconda3/bin',
   '/home/jim/INSTALL/python',
   '/home/jim/INSTALL/ipython',
   '/home/jim/INSTALL/anaconda3/lib/python36.zip',
   '/home/jim/INSTALL/anaconda3/lib/python3.6',
   '/home/jim/INSTALL/anaconda3/lib/python3.6/lib-dynload',
   '/home/jim/.local/lib/python3.6/site-packages',
   '/home/jim/INSTALL/anaconda3/lib/python3.6/site-packages',
   '/home/jim/INSTALL/anaconda3/lib/python3.6/site-packages/IPython/extensions',
   '/home/jim/.ipython']
  </code></pre>
  
  <p>When I execute the same commands from a normal terminal I get the correct results:</p>
  
  <pre><code>jim@main:~$ source /home/jim/INSTALL/anaconda3/bin/activate
  (base) jim@main:~$ conda activate research
  (research) jim@main:~$ which ipython
  /home/jim/INSTALL/anaconda3/envs/research/bin/ipython
  (research) jim@main:~$ ipython
  Python 3.7.2 (default, Dec 29 2018, 06:19:36) 
  Type 'copyright', 'credits' or 'license' for more information
  IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
  
  In [1]: import sys                                                                                                                                                                              
  
  In [2]: sys.path                                                                                                                                                                                
  Out[2]: 
  ['/home/jim/INSTALL/anaconda3/envs/research/bin',
   '/home/jim/INSTALL/python',
   '/home/jim/INSTALL/anaconda3/envs/research/lib/python37.zip',
   '/home/jim/INSTALL/ipython',
   '/home/jim/INSTALL/anaconda3/envs/research/lib/python3.7',
   '/home/jim/INSTALL/anaconda3/envs/research/lib/python3.7/lib-dynload',
   '',
   '/home/jim/INSTALL/anaconda3/envs/research/lib/python3.7/site-packages',
   '/home/jim/INSTALL/anaconda3/envs/research/lib/python3.7/site-packages/IPython/extensions',
   '/home/jim/.ipython']
  </code></pre>
  
  <p>I am using the Python 2019.1.0 extension.</p>
  
  <p>How do I get this to work? Is it possible for me to change the commands issued for me when I open the integrated terminal?</p>