vscode-jupyter: Failed to start kernel on a Mac M1 with homebrew Python
I got this bug when I executed the following steps:
- create new venv through the
python: create environment
command - select 3.10.8 or 3.9.4 as the python version
- create new jupyter notebook via the command
create new jupyter notebook
- tried to run `print(“hello world”)
- select to install a kernel (also fails after it says it installed a kernel)
as notebook output:
Failed to start the Kernel.
Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
View Jupyter [log](command:jupyter.viewOutput) for further details.
Failed to start the Kernel.
Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
View Jupyter [log](command:jupyter.viewOutput) for further details.
output panel for Jupyter
Visual Studio Code - Insiders (1.75.0-insider, undefined, desktop)
Jupyter Extension Version: 2023.1.2000251018.
Python Extension Version: 2023.1.10241007.
Workspace folder /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2
warn 11:22:20.480: Exception while attempting zmq : No native build was found for platform=darwin arch=arm64 runtime=electron abi=106 uv=1 armv=8 libc=glibc node=16.14.2 electron=19.1.9
loaded from: /Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/node_modules/zeromq
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 11:22:20.577: LSP Notebooks experiment is disabled -- not using Pylance
warn 11:22:20.656: No interpreter with path /Users/eleanorboyd/Documents/testing - tester files/inc_dec_example/.venv/bin/python3 found in Python API, will convert Uri path to string as Id file:///Users/eleanorboyd/Documents/testing%20-%20tester%20files/inc_dec_example/.venv/bin/python3
warn 11:22:20.656: No interpreter with path /Users/eleanorboyd/Documents/testing - tester files/inc_dec_example/.venv/bin/python3 found in Python API, will convert Uri path to string as Id file:///Users/eleanorboyd/Documents/testing%20-%20tester%20files/inc_dec_example/.venv/bin/python3
warn 11:22:20.657: No interpreter with path /Users/eleanorboyd/Documents/testing - tester files/inc_dec_example/.venv/bin/python3 found in Python API, will convert Uri path to string as Id file:///Users/eleanorboyd/Documents/testing%20-%20tester%20files/inc_dec_example/.venv/bin/python3
info 11:22:20.663: Process Execution: > /opt/homebrew/bin/python3 -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> /opt/homebrew/bin/python3 -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:22:20.664: Process Execution: > /opt/homebrew/bin/python3 -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> /opt/homebrew/bin/python3 -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
warn 11:22:20.671: No interpreter with path /Users/eleanorboyd/Documents/testing - tester files/inc_dec_example/.venv/bin/python3 found in Python API, will convert Uri path to string as Id file:///Users/eleanorboyd/Documents/testing%20-%20tester%20files/inc_dec_example/.venv/bin/python3
info 11:22:20.707: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -m pip list
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -m pip list
info 11:22:20.836: Process Execution: > /opt/homebrew/bin/python3 -m jupyter kernelspec --version
> /opt/homebrew/bin/python3 -m jupyter kernelspec --version
info 11:22:20.892: Process Execution: > /opt/homebrew/bin/python3 ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
> /opt/homebrew/bin/python3 ~/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
info 11:23:00.563: Attempting to start a server because of preload conditions ...
info 11:23:00.564: Checking for server existence.
info 11:23:00.566: Connecting to server
info 11:23:00.566: Launching server
info 11:23:00.566: Starting Notebook
info 11:23:00.583: Generating custom default config at /var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/549aa984-4286-45b2-b206-c67f7ff2e4ac/jupyter_notebook_config.py
Starting Jupyter from /opt/homebrew/bin/python3 with arguments --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/549aa984-4286-45b2-b206-c67f7ff2e4ac/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 11:23:00.634: Process Execution: > /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/549aa984-4286-45b2-b206-c67f7ff2e4ac/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/549aa984-4286-45b2-b206-c67f7ff2e4ac/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
error 11:23:00.690: Error starting server in serverPreload: Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
info 11:23:00.953: Registering dummy command feature
error 11:23:03.896: Live Notebook not available for Untitled-1.ipynb
error 11:23:05.129: Live Notebook not available for Untitled-1.ipynb
info 11:23:11.983: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd08e039fa40630fd1b0302576ca6f5117c4a5323932fad62a73f53af34bfae122f./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python.-m#ipykernel_launcher (Python Path: /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.9.6 (default, Oct 18 2022, 12:41:40)
[Clang 14.0.0 (clang-1400.0.29.202)]) for 'Untitled-1.ipynb' (disableUI=false)
info 11:23:11.984: Checking for server existence.
info 11:23:11.985: Connecting to server
info 11:23:11.985: Launching server
info 11:23:11.985: Starting Notebook
info 11:23:12.002: Generating custom default config at /var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/84df9726-c23b-4430-8ed0-7e0b213cf29b/jupyter_notebook_config.py
Starting Jupyter from /opt/homebrew/bin/python3 with arguments --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/84df9726-c23b-4430-8ed0-7e0b213cf29b/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 11:23:12.014: Process Execution: > /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/84df9726-c23b-4430-8ed0-7e0b213cf29b/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/84df9726-c23b-4430-8ed0-7e0b213cf29b/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
warn 11:23:12.066: Error occurred while trying to start the kernel, options.disableUI=false Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
warn 11:23:12.066: Kernel Error, context = start Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
info 11:23:12.068: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:23:12.087: installMissingDependencies /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python, ui.disabled=false for resource 'Untitled-1.ipynb'
info 11:23:12.091: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:23:12.109: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:23:14.728: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:23:14.763: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -m pip install -U ipykernel
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -m pip install -U ipykernel
info 11:24:08.720: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:24:12.299: Dispose Kernel 'Untitled-1.ipynb' associated with 'Untitled-1.ipynb'
info 11:24:12.301: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -m pip list
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -m pip list
info 11:24:12.301: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd08e039fa40630fd1b0302576ca6f5117c4a5323932fad62a73f53af34bfae122f./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python.-m#ipykernel_launcher (Python Path: /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.9.6 (default, Oct 18 2022, 12:41:40)
[Clang 14.0.0 (clang-1400.0.29.202)]) for 'Untitled-1.ipynb' (disableUI=false)
info 11:24:12.301: Checking for server existence.
info 11:24:12.301: Connecting to server
info 11:24:12.301: Launching server
info 11:24:12.302: Starting Notebook
info 11:24:12.304: Generating custom default config at /var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/e8762652-2004-492b-b980-f753ec488489/jupyter_notebook_config.py
Starting Jupyter from /opt/homebrew/bin/python3 with arguments --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/e8762652-2004-492b-b980-f753ec488489/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 11:24:12.313: Process Execution: > /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/e8762652-2004-492b-b980-f753ec488489/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/e8762652-2004-492b-b980-f753ec488489/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
warn 11:24:12.370: Error occurred while trying to start the kernel, options.disableUI=false Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
warn 11:24:12.371: Kernel Error, context = start Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
info 11:24:12.372: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:24:12.522: Dispose Kernel 'Untitled-1.ipynb' associated with 'Untitled-1.ipynb'
error 11:24:12.523: Error in execution Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
error 11:24:12.523: Error in execution (get message for cell) Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
info 11:26:24.553: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd08e039fa40630fd1b0302576ca6f5117c4a5323932fad62a73f53af34bfae122f./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python.-m#ipykernel_launcher (Python Path: /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv, EnvType: Venv, EnvName: '.venv', Version: 3.9.6 (default, Oct 18 2022, 12:41:40)
[Clang 14.0.0 (clang-1400.0.29.202)]) for 'Untitled-1.ipynb' (disableUI=false)
info 11:26:24.555: Checking for server existence.
info 11:26:24.555: Connecting to server
info 11:26:24.555: Launching server
info 11:26:24.556: Starting Notebook
info 11:26:24.557: Generating custom default config at /var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/89fab8c2-2ff0-4579-9028-c4db5b9fff46/jupyter_notebook_config.py
Starting Jupyter from /opt/homebrew/bin/python3 with arguments --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/89fab8c2-2ff0-4579-9028-c4db5b9fff46/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 11:26:24.575: Process Execution: > /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/89fab8c2-2ff0-4579-9028-c4db5b9fff46/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /opt/homebrew/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2" --config=/var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/89fab8c2-2ff0-4579-9028-c4db5b9fff46/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
warn 11:26:24.644: Error occurred while trying to start the kernel, options.disableUI=false Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
warn 11:26:24.644: Kernel Error, context = start Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
info 11:26:24.646: Process Execution: > ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> ~/Documents/testing_tester_files/blank_python_2/.venv/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 11:26:26.308: Dispose Kernel 'Untitled-1.ipynb' associated with 'Untitled-1.ipynb'
error 11:26:26.310: Error in execution Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
error 11:26:26.310: Error in execution (get message for cell) Er [Error]: Jupyter server crashed. Unable to connect.
Error code from Jupyter: 1
usage: jupyter.py [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
[--paths] [--json] [--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
format.
--json output paths as machine-readable json
--debug output debug information about paths
Available subcommands:
Jupyter command `jupyter-notebook` not found.
at Sm.rejectStartPromise (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:254830)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:17:255390)
at t.n (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:701037)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:700930)
at t._complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699446)
at t.complete (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/eleanorboyd/.vscode-insiders/extensions/ms-toolsai.jupyter-2023.1.2000251018/out/extension.node.js:2:1800807)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
category: 'jupyterconnection'
}
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 35 (35 by maintainers)
@DonJayamanne, yep it worked! Just had to install jupyter on my homebrew version of python and I was good to go. Thanks!