From b1aa4969dce9feab2722a157c3eece0b79465f69 Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Fri, 16 Nov 2018 14:48:32 -0800 Subject: [PATCH 1/2] Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md --- PYTHON_INTERACTIVE_TROUBLESHOOTING.md | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/PYTHON_INTERACTIVE_TROUBLESHOOTING.md b/PYTHON_INTERACTIVE_TROUBLESHOOTING.md index 5b179fedd85c..ad8014846433 100644 --- a/PYTHON_INTERACTIVE_TROUBLESHOOTING.md +++ b/PYTHON_INTERACTIVE_TROUBLESHOOTING.md @@ -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 this 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: +You can verify this python version has jupyter by running the command 'Python: REPL' from the command palette +and then attempting to run the following code in the terminal that opens: + ```python -import sys -sys.version +import jupyter_core +import notebook +jupyter_core.version_info +notebook.version_info +``` +If any of those commands fail, the python you have selected doesn't support launch jupyter notebooks. + +Errors you'd get would be something like: + +``` +>>> import jupyter +Traceback (most recent call last): + File "", line 1, in +ImportError: No module named jupyter +>>> import notebook +Traceback (most recent call last): + File "", line 1, in +ImportError: No module named notebook +>>> ``` ### The second step (if changing the Python version doesn't work) is to install Jupyter From 33b2f499e097cd42e430bb4262362e0b513a2664 Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Fri, 16 Nov 2018 14:57:09 -0800 Subject: [PATCH 2/2] Update PYTHON_INTERACTIVE_TROUBLESHOOTING.md --- PYTHON_INTERACTIVE_TROUBLESHOOTING.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PYTHON_INTERACTIVE_TROUBLESHOOTING.md b/PYTHON_INTERACTIVE_TROUBLESHOOTING.md index ad8014846433..8fa5e4f75f19 100644 --- a/PYTHON_INTERACTIVE_TROUBLESHOOTING.md +++ b/PYTHON_INTERACTIVE_TROUBLESHOOTING.md @@ -11,12 +11,12 @@ This error can happen when you ### The first step is to verify you are running the Python environment you want. -The python you're using is picked with this selection dropdown on the bottom left of the VS Code window: +The python you're using is picked with the selection dropdown on the bottom left of the VS Code window: ![selector](resources/PythonSelector.png) -You can verify this python version has jupyter by running the command 'Python: REPL' from the command palette -and then attempting to run the following code in the terminal that opens: +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 jupyter_core @@ -24,9 +24,9 @@ import notebook jupyter_core.version_info notebook.version_info ``` -If any of those commands fail, the python you have selected doesn't support launch jupyter notebooks. +If any of these commands fail, the python you have selected doesn't support launching jupyter notebooks. -Errors you'd get would be something like: +Failures would look something like: ``` >>> import jupyter