title: Can't run Jupyter Notebook in VSCode - Vanilla Python, Windows 10
body: <p>I have an existing vanilla Python installed on my Windows 10 computer and I do not want to reinstall Anaconda.</p>
  <p>When trying to run code from ipynb file in vscode, I get the following error:</p>
  <pre><code>Error: Jupyter cannot be started. Error attempting to locate jupyter:
  at A.startServer (c:\Users\[username]\.vscode\extensions\ms-python.python-2020.2.64397\out\client\extension.js:1:786120)
  at async A.ensureServerAndNotebookImpl (c:\Users\[username]\.vscode\extensions\ms-python.python-2020.2.64397\out\client\extension.js:1:785575)
  at async A.ensureServerAndNotebook (c:\Users\[username]\.vscode\extensions\ms-python.python-2020.2.64397\out\client\extension.js:1:785376)
  at async A.submitCode (c:\Users\[username]\.vscode\extensions\ms-python.python-2020.2.64397\out\client\extension.js:1:782328)
  at async A.reexecuteCell (c:\Users\[username]\.vscode\extensions\ms-python.python-2020.2.64397\out\client\extension.js:75:879318)
  </code></pre>
  <p>Also with the following error from VSCode:
  <a href="https://i.stack.imgur.com/hJeR6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hJeR6.png" alt="enter image description here" /></a></p>
  <hr />
  <p>Below are some of the things I have tried:</p>
  <p><strong>Check if the VSCode Extension in Correctly Installed</strong></p>
  <p>&quot;Jupyter&quot; extensions is deprecated. I had the &quot;Python&quot; plugin from Microsoft installed which contained Jupiter Notebook support.</p>
  <p><strong>Jupyter Installed Correctly</strong></p>
  <p>I tried reinstalling jupyter:</p>
  <pre><code>&gt; python -m pip install --upgrade pip
  &gt; pip install jupyter
  &gt; pip install notebook
  </code></pre>
  <p><strong>Tried to Run Jupyter on Terminal/Command Line</strong></p>
  <pre><code>&gt; jupyter notebook    //didn't work
  jupyter : The term 'jupyter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or   
  if a path was included, verify that the path is correct and try again.
  At line:1 char:1
  + jupyter
  + ~~~~~~~
  + CategoryInfo          : ObjectNotFound: (jupyter:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  <p>This gave an error not able to find jupyter executable.
  According to <a href="https://stackoverflow.com/questions/41034866/running-jupyter-via-command-line-on-windows">this post</a> I tried the following and it worked:</p>
  <pre><code>&gt; python -m notebook
  </code></pre>
  <p><strong>Check if pointing to the right interpreter</strong></p>
  <p>As per <a href="https://stackoverflow.com/questions/60330837/jupyter-server-not-started-no-kernel-in-vs-code">this post</a> I tried:</p>
  <ol>
  <li>Press Command+Shift+P to open a new command pallete</li>
  <li>Type &gt;Python: Select Intepreter to start jupyter notebook server</li>
  </ol>
  <p>But I only had one version of Python installed on my computer, and doing this didn't make a difference.</p>
  <p><strong>Check the Path</strong></p>
  <p>There was this comment about <code>PYTHONPATH</code> in <a href="https://stackoverflow.com/questions/19917492/how-can-i-use-a-python-script-in-the-command-line-without-cd-ing-to-its-director">this post</a> but since the python directory is correctly referenced and <code>python</code> works from the command line, I did not investigate it further.</p>
  <p>One thing to note is <code>pip</code> installs to my <code>&quot;C:/Users/[username]/appdata/Roaming/Python-38/&quot;</code> folder while my Python is installed in <code>&quot;C:\Program Files\Python38-32\&quot;</code>.</p>