File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments