Skip to content

Commit

Permalink
Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md (#3385)
Browse files Browse the repository at this point in the history
* Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md

* Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md
  • Loading branch information
rchiodo committed Nov 17, 2018
1 parent d2a5e21 commit fbd9c44
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions PYTHON_INTERACTIVE_TROUBLESHOOTING.md
Expand Up @@ -11,14 +11,33 @@ This error can happen when you

### The first step is to verify you are running the Python environment you want.

You can do this by either selecting it in the dropdown at the bottom of VS Code:
The python you're using is picked with the selection dropdown on the bottom left of the VS Code window:

![selector](resources/PythonSelector.png)

Or by running some Python code in VS Code Python terminal:
To verify this version of python supports Jupyter notebooks, start a 'Python: REPL' from the command palette
and then type in the following code:

```python
import sys
sys.version
import jupyter_core
import notebook
jupyter_core.version_info
notebook.version_info
```
If any of these commands fail, the python you have selected doesn't support launching jupyter notebooks.

Failures would look something like:

```
>>> import jupyter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named jupyter
>>> import notebook
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named notebook
>>>
```

### The second step (if changing the Python version doesn't work) is to install Jupyter
Expand Down

0 comments on commit fbd9c44

Please sign in to comment.