Skip to content

Commit fbd9c44

Browse files
authored
Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md (microsoft#3385)
* Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md * Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md
1 parent d2a5e21 commit fbd9c44

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

PYTHON_INTERACTIVE_TROUBLESHOOTING.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,33 @@ This error can happen when you
1111

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

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

1616
![selector](resources/PythonSelector.png)
1717

18-
Or by running some Python code in VS Code Python terminal:
18+
To verify this version of python supports Jupyter notebooks, start a 'Python: REPL' from the command palette
19+
and then type in the following code:
20+
1921
```python
20-
import sys
21-
sys.version
22+
import jupyter_core
23+
import notebook
24+
jupyter_core.version_info
25+
notebook.version_info
26+
```
27+
If any of these commands fail, the python you have selected doesn't support launching jupyter notebooks.
28+
29+
Failures would look something like:
30+
31+
```
32+
>>> import jupyter
33+
Traceback (most recent call last):
34+
File "<stdin>", line 1, in <module>
35+
ImportError: No module named jupyter
36+
>>> import notebook
37+
Traceback (most recent call last):
38+
File "<stdin>", line 1, in <module>
39+
ImportError: No module named notebook
40+
>>>
2241
```
2342

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

0 commit comments

Comments
 (0)