Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start kernel on a Mac M1 with homebrew Python #12632

Closed
eleanorjboyd opened this issue Jan 24, 2023 · 35 comments
Closed

Failed to start kernel on a Mac M1 with homebrew Python #12632

eleanorjboyd opened this issue Jan 24, 2023 · 35 comments
Assignees
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster verified Verification succeeded
Milestone

Comments

@eleanorjboyd
Copy link
Member

eleanorjboyd commented Jan 24, 2023

I got this bug when I executed the following steps:

  1. create new venv through the python: create environment command
  2. select 3.10.8 or 3.9.4 as the python version
  3. create new jupyter notebook via the command create new jupyter notebook
  4. tried to run `print("hello world")
  5. 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'
}
@DonJayamanne
Copy link
Contributor

@eleanorjboyd please could you provide a screenshot of the error message you get in the Notebook and any error messages displayed (as standard popup error messages on the bottom right of vscode)

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-kernel-startup bug Issue identified by VS Code Team member as probable bug labels Jan 24, 2023
@DonJayamanne
Copy link
Contributor

Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

@eleanorjboyd
Copy link
Member Author

eleanorjboyd commented Jan 24, 2023

screenshot
Screenshot 2023-01-24 at 10 57 37 AM

error msg displayed in the notebook

Output exceeds the [size limit](command:workbench.action.openSettings?[). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?08eac301-c4b3-4c73-b761-a1d1b3804e39)
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:
...


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.
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.
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.

verbose logs from output channel

debug 13:49:10.206: VSCodeNotebookController::handleExecution, Class name = _v (started execution)
debug 13:49:10.206: Execute Cell 0 Untitled-1.ipynb
debug 13:49:10.207: start the kernel, options.disableUI=false for Untitled-1.ipynb
debug 13:49:10.207: Start Jupyter Session in kernel.ts with disableUI = false
info 13:49:10.207: 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 13:49:10.208: Checking for server existence.
debug 13:49:10.208: Checking for server usability.
debug 13:49:10.208: Starting notebook server.
info 13:49:10.208: Connecting to server
info 13:49:10.208: Launching server
info 13:49:10.209: Starting Notebook
info 13:49:10.210: Generating custom default config at /var/folders/q8/17wzg0cx7p59c1qfvwxx8yhc0000gn/T/b4734e09-77a1-4aca-a861-db159ab82d70/jupyter_notebook_config.py
debug 13:49:10.211: Starting Jupyter Notebook
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/b4734e09-77a1-4aca-a861-db159ab82d70/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
debug 13:49:10.211: Create activated Env, Class name = tc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/opt/homebrew/bin/python3","sysPrefix":"/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10","displayPath":{"$mid":1,"path":"/opt/homebrew/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/opt/homebrew/bin/python3","external":"file:///opt/homebrew/bin/python3","path":"/opt/homebrew/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":8,"raw":"3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)]"}}}
debug 13:49:10.211: Getting activated env variables, Class name = ps (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/opt/homebrew/bin/python3>, Arg 3: true
debug 13:49:10.211: Getting activated env variables impl, Class name = ps (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.211: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.211: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunPythonCode"
debug 13:49:10.212: Get Custom Env Variables, Class name = bc, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunPythonCode"
debug 13:49:10.221: Got empty env vars with python /opt/homebrew/bin/python3 in 10ms
debug 13:49:10.222: Getting activated env variables from Python, Class name = ps, completed in 11ms, has a falsy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.222: Got env vars with python /opt/homebrew/bin/python3 in 11ms with 0 variables
debug 13:49:10.222: Getting activated env variables impl, Class name = ps, completed in 11ms, has a falsy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.222: Getting activated env variables, Class name = ps, completed in 11ms, has a falsy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/opt/homebrew/bin/python3>, Arg 3: true
debug 13:49:10.222: Create ProcessService, Class name = Ha (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2"
debug 13:49:10.222: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunNonPythonCode"
debug 13:49:10.222: Cached data exists getEnvironmentVariables, /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2
debug 13:49:10.222: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunNonPythonCode"
debug 13:49:10.222: Create ProcessService, Class name = Ha, completed in 0ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2"
debug 13:49:10.222: Creating execution process, Class name = tc, completed in 0ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","external":"file:///Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","scheme":"file"},"interpreter":{"id":"/opt/homebrew/bin/python3","sysPrefix":"/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10","displayPath":{"$mid":1,"path":"/opt/homebrew/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/opt/homebrew/bin/python3","external":"file:///opt/homebrew/bin/python3","path":"/opt/homebrew/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":8,"raw":"3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)]"}}}, Return Value: {}
debug 13:49:10.222: Create activated Env, Class name = tc, completed in 11ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/opt/homebrew/bin/python3","sysPrefix":"/opt/homebrew/opt/python@3.10/Frameworks/Python.framework/Versions/3.10","displayPath":{"$mid":1,"path":"/opt/homebrew/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/opt/homebrew/bin/python3","external":"file:///opt/homebrew/bin/python3","path":"/opt/homebrew/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":8,"raw":"3.10.8 (main, Oct 13 2022, 09:48:40) [Clang 14.0.0 (clang-1400.0.29.102)]"}},"resource":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","external":"file:///Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","scheme":"file"}}
debug 13:49:10.222: Getting activated env variables, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/homebrew/bin/python3>, Arg 3: true
debug 13:49:10.222: Getting activated env variables impl, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.222: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.223: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunPythonCode"
debug 13:49:10.223: Get Custom Env Variables, Class name = bc, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunPythonCode"
debug 13:49:10.231: Got empty env vars with python /opt/homebrew/bin/python3 in 9ms
debug 13:49:10.231: Getting activated env variables from Python, Class name = ps, completed in 9ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.231: Got env vars with python /opt/homebrew/bin/python3 in 9ms with 0 variables
debug 13:49:10.232: Getting activated env variables impl, Class name = ps, completed in 10ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/opt/homebrew/bin/python3>
debug 13:49:10.232: Getting activated env variables, Class name = ps, completed in 10ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/opt/homebrew/bin/python3>, Arg 3: true
info 13:49:10.233: 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/b4734e09-77a1-4aca-a861-db159ab82d70/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/b4734e09-77a1-4aca-a861-db159ab82d70/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
debug 13:49:10.233: Waiting for Jupyter Notebook
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.
debug 13:49:10.281: 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 13:49:10.285: 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 13:49:10.286: 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',
  vslsStack: [
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}
  ]
}
debug 13:49:10.286: Create activated Env, Class name = tc (started execution), Arg 1: {"interpreter":{"id":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","sysPrefix":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","envPath":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":6,"raw":"3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"},"uri":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","external":"file:///Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true}
debug 13:49:10.286: Getting activated env variables, Class name = ps (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python>, Arg 3: true
debug 13:49:10.286: Getting activated env variables impl, Class name = ps (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python>
debug 13:49:10.286: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python>
debug 13:49:10.286: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunPythonCode"
debug 13:49:10.287: Get Custom Env Variables, Class name = bc, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: "RunPythonCode"
debug 13:49:10.287: Got env vars with python /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python, with env var count 38 and custom env var count 34 in 1ms
debug 13:49:10.287: Getting activated env variables from Python, Class name = ps, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python>
debug 13:49:10.287: Got env vars with python /Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python in 1ms with 39 variables
debug 13:49:10.287: Getting activated env variables impl, Class name = ps, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python>
debug 13:49:10.287: Getting activated env variables, Class name = ps, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2", Arg 2: <Uri:/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python>, Arg 3: true
debug 13:49:10.287: Create activated Env, Class name = tc, completed in 1ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","external":"file:///Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2","scheme":"file"},"interpreter":{"id":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","sysPrefix":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","envPath":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","scheme":"file"},"displayPath":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv","scheme":"file"},"envName":".venv","displayName":".venv","envType":"Venv","version":{"major":3,"minor":9,"patch":6,"raw":"3.9.6 (default, Oct 18 2022, 12:41:40) \n[Clang 14.0.0 (clang-1400.0.29.202)]"},"uri":{"$mid":1,"fsPath":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","external":"file:///Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","path":"/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/bin/python","scheme":"file"}},"allowEnvironmentFetchExceptions":true}
info 13:49:10.288: 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')"
debug 13:49:10.395: Checking if product is installed, Class name = qd, completed in 109ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true
debug 13:49:10.396: Are Dependencies Installed, Class name = Su, completed in 110ms, has a truthy return value, Arg 1: "~/Documents/testing_tester_files/blank_python_2/.venv/python./Users/eleanorboyd/Documents/testing_tester_files/blank_python_2/.venv/python.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true
info 13:49:10.415: Dispose Kernel 'Untitled-1.ipynb' associated with 'Untitled-1.ipynb'
debug 13:49:10.416: Kernel got disposed, hence there is no longer a kernel associated with Untitled-1.ipynb
error 13:49:10.416: 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',
  vslsStack: [
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}
  ]
}
debug 13:49:10.416: Start cell 0 execution @ undefined
error 13:49:10.416: 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',
  vslsStack: [
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}, CallSite {},
    CallSite {}
  ]
}
debug 13:49:10.433: End cell 0 execution @ undefined, started @ undefined, elapsed time = 0s
debug 13:49:10.433: VSCodeNotebookController::handleExecution, Class name = _v, completed in 227ms, has a falsy return value

@connor4312

This comment was marked as off-topic.

@connor4312

This comment was marked as off-topic.

@DonJayamanne
Copy link
Contributor

@eleanorjboyd
Does the following command work for you in the terminal
/opt/homebrew/bin/python3 -m jupyter notebook --notebook-dir="/Users/eleanorboyd/Documents/testing_tester_files/blank_python_2"
By work, i mean does this open a Jupyter Notebook UI in the browser

@connor4312 similarly for you, does this work in the terminal
/bin/python3 -m jupyter notebook --notebook-dir="/home/connor/Downloads/multi-devcontainer-test"

@connor4312

This comment was marked as off-topic.

@DonJayamanne

This comment was marked as off-topic.

@DonJayamanne

This comment was marked as off-topic.

@connor4312

This comment was marked as off-topic.

@roblourens

This comment was marked as off-topic.

@connor4312
Copy link
Member

On x86 Ubuntu. I gave Don a tunnel to my VM to play around.

@DonJayamanne
Copy link
Contributor

@connor4312 This is most likely an issue with the version of Python downloaded, not sure, basically Jupyter application is not working outside vscode, hence thats' not working to work in vscode either.

I'm not even able to create a virtual environment using the version of Python that is installed in there.
At this stage this is purely an issue with users environment, not having a version of Python that can be used to install and get things working.

I think we might want to look into this next iteration on how to best solve this problem for users on Ubuntu.

@DonJayamanne DonJayamanne changed the title Failed to start kernel Failed to start kernel on a Mac M1 Jan 24, 2023
@connor4312
Copy link
Member

connor4312 commented Jan 24, 2023

Ok. This is using the default python3 and python3-pip apt package on Ubuntu 22.04. Maybe we want to issue some kind of warning if this version of python doesn't work.

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jan 24, 2023

@eleanorjboyd how did you install Python3 on your Mac?
Can you run the following commands in the terminal and let me know how it goes
Please run each of the following in the order provided and please let me know what you get in the output

  1. /opt/homebrew/bin/python3 --version
  2. /opt/homebrew/bin/python3 -m pip list
  3. /opt/homebrew/bin/python3 -m jupyter notebook
  4. /opt/homebrew/bin/python3 -m pip list
  5. /opt/homebrew/bin/python3 -m pip install jupyter notebook -U
  6. /opt/homebrew/bin/python3 -m jupyter notebook
  7. /opt/homebrew/bin/python3 -m pip list
  8. which jupyter
  9. jupyter notebook
  10. Open some random folder and type /opt/homebrew/bin/python3 -m venv .venv
  11. Do you have other python environments on your machine
  12. Please could you share ALL of the logs from the Jupyter Output panel. You have only pasted part of the logs

@DonJayamanne
Copy link
Contributor

Damn it, its possible both issues (including the one reported by Conner) are the same as originally suspected by @connor4312 (could be due to the way Python was installed)

@eleanorjboyd
Copy link
Member Author

is it still helpful if I run the above commands and return the output?

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jan 25, 2023

Yes please do run the commands
Also do you recall how you installed Pyhon on your mac?

@eleanorjboyd
Copy link
Member Author

Here are the following things you asked me to run, numbers 1-9.

eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % git push --tag
Enumerating objects: 1, done.
Counting objects: 100% (1/1), done.
Writing objects: 100% (1/1), 183 bytes | 183.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:eleanorjboyd/tester_for_git_issues.git
 * [new tag]         tester-tag-delete -> tester-tag-delete
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % git push --tags
Enumerating objects: 2, done.
Counting objects: 100% (2/2), done.
Delta compression using up to 10 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 314 bytes | 314.00 KiB/s, done.
Total 2 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:eleanorjboyd/tester_for_git_issues.git
 * [new tag]         tester-p2 -> tester-p2
 * [new tag]         tester-tag-delete -> tester-tag-delete
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % git ls-remote --tags

From git@github.com:eleanorjboyd/tester_for_git_issues.git
7874ad06af697a46c189a6fc6191bc7305808178        refs/tags/tester-tag-delete
9984b844794fb0a92e18ebf8a88dfd6e4e18b2d8        refs/tags/tester-tag-delete^{}
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % git ls-remote --tags

From git@github.com:eleanorjboyd/tester_for_git_issues.git
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 --version
Python 3.10.8
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 -m pip list

Package              Version
-------------------- -----------
anyio                3.6.2
appnope              0.1.3
argon2-cffi          21.3.0
argon2-cffi-bindings 21.2.0
astroid              2.12.13
asttokens            2.1.0
attrs                22.1.0
backcall             0.2.0
beautifulsoup4       4.11.1
black                22.6.0
bleach               5.0.1
cffi                 1.15.1
click                8.1.3
debugpy              1.6.3
decorator            5.1.1
defusedxml           0.7.1
dill                 0.3.6
distlib              0.3.6
entrypoints          0.4
executing            1.2.0
fastjsonschema       2.16.2
filelock             3.8.0
github2              0.6.2
httplib2             0.20.4
idna                 3.4
importlib-resources  5.10.1
iniconfig            1.1.1
ipykernel            6.17.1
ipython              8.6.0
ipython-genutils     0.2.0
isort                5.10.1
jedi                 0.18.2
Jinja2               3.1.2
jsonschema           4.17.1
jupyter_client       7.4.7
jupyter_core         5.0.0
jupyter-server       1.23.3
jupyterlab-pygments  0.2.2
lazy-object-proxy    1.4.1
MarkupSafe           2.1.1
matplotlib-inline    0.1.6
mccabe               0.7.0
mistune              2.0.4
myModule             1.0.0
mypy-extensions      0.4.3
nbclassic            0.4.8
nbclient             0.7.0
nbconvert            7.2.5
nbformat             5.7.0
nest-asyncio         1.5.6
notebook             6.5.2
notebook_shim        0.2.2
packaging            21.3
pandocfilters        1.5.0
parso                0.8.3
pathspec             0.9.0
pexpect              4.8.0
pickleshare          0.7.5
pip                  22.3.1
platformdirs         2.5.2
pluggy               1.0.0
prometheus-client    0.15.0
prompt-toolkit       3.0.33
psutil               5.9.4
ptyprocess           0.7.0
pure-eval            0.2.2
py                   1.11.0
pycparser            2.21
Pygments             2.13.0
pylint               2.15.6
pyparsing            3.0.9
pyrsistent           0.19.2
pytest               7.1.2
python-dateutil      2.8.2
pyzmq                24.0.1
Send2Trash           1.8.0
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 --version  
Python 3.10.8
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 -m pip list
Package              Version
-------------------- -----------
anyio                3.6.2
appnope              0.1.3
argon2-cffi          21.3.0
argon2-cffi-bindings 21.2.0
astroid              2.12.13
asttokens            2.1.0
attrs                22.1.0
backcall             0.2.0
beautifulsoup4       4.11.1
black                22.6.0
bleach               5.0.1
cffi                 1.15.1
click                8.1.3
debugpy              1.6.3
decorator            5.1.1
defusedxml           0.7.1
dill                 0.3.6
distlib              0.3.6
entrypoints          0.4
executing            1.2.0
fastjsonschema       2.16.2
filelock             3.8.0
github2              0.6.2
httplib2             0.20.4
idna                 3.4
importlib-resources  5.10.1
iniconfig            1.1.1
ipykernel            6.17.1
ipython              8.6.0
ipython-genutils     0.2.0
isort                5.10.1
jedi                 0.18.2
Jinja2               3.1.2
jsonschema           4.17.1
jupyter_client       7.4.7
jupyter_core         5.0.0
jupyter-server       1.23.3
jupyterlab-pygments  0.2.2
lazy-object-proxy    1.4.1
MarkupSafe           2.1.1
matplotlib-inline    0.1.6
mccabe               0.7.0
mistune              2.0.4
myModule             1.0.0
mypy-extensions      0.4.3
nbclassic            0.4.8
nbclient             0.7.0
nbconvert            7.2.5
nbformat             5.7.0
nest-asyncio         1.5.6
notebook             6.5.2
notebook_shim        0.2.2
packaging            21.3
pandocfilters        1.5.0
parso                0.8.3
pathspec             0.9.0
pexpect              4.8.0
pickleshare          0.7.5
pip                  22.3.1
platformdirs         2.5.2
pluggy               1.0.0
prometheus-client    0.15.0
prompt-toolkit       3.0.33
psutil               5.9.4
ptyprocess           0.7.0
pure-eval            0.2.2
py                   1.11.0
pycparser            2.21
Pygments             2.13.0
pylint               2.15.6
pyparsing            3.0.9
pyrsistent           0.19.2
pytest               7.1.2
python-dateutil      2.8.2
pyzmq                24.0.1
Send2Trash           1.8.0
setuptools           65.4.1
six                  1.16.0
sniffio              1.3.0
soupsieve            2.3.2.post1
stack-data           0.6.1
terminado            0.17.0
tinycss2             1.2.1
tomli                2.0.1
tomlkit              0.11.6
tornado              6.2
tox                  3.27.1
traitlets            5.5.0
typing_extensions    4.4.0
virtualenv           20.17.0
wcwidth              0.2.5
webencodings         0.5.1
websocket-client     1.4.2
wheel                0.37.1
wrapt                1.14.1
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 -m jupyter notebook

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.
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % opt/homebrew/bin/python3 -m pip list
zsh: no such file or directory: opt/homebrew/bin/python3
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 -m pip install jupyter notebook -U
Collecting jupyter
  Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Requirement already satisfied: notebook in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (6.5.2)
Collecting jupyter-console
  Using cached jupyter_console-6.4.4-py3-none-any.whl (22 kB)
Collecting qtconsole
  Using cached qtconsole-5.4.0-py3-none-any.whl (121 kB)
Collecting ipywidgets
  Using cached ipywidgets-8.0.4-py3-none-any.whl (137 kB)
Requirement already satisfied: ipykernel in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jupyter) (6.17.1)
Requirement already satisfied: nbconvert in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jupyter) (7.2.5)
Requirement already satisfied: jinja2 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (3.1.2)
Requirement already satisfied: Send2Trash>=1.8.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (1.8.0)
Requirement already satisfied: pyzmq>=17 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (24.0.1)
Requirement already satisfied: terminado>=0.8.3 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (0.17.0)
Requirement already satisfied: prometheus-client in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (0.15.0)
Requirement already satisfied: traitlets>=4.2.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (5.5.0)
Requirement already satisfied: argon2-cffi in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (21.3.0)
Requirement already satisfied: ipython-genutils in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (0.2.0)
Requirement already satisfied: nbclassic>=0.4.7 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (0.4.8)
Requirement already satisfied: jupyter-core>=4.6.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (5.0.0)
Requirement already satisfied: nest-asyncio>=1.5 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (1.5.6)
Requirement already satisfied: nbformat in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (5.7.0)
Requirement already satisfied: jupyter-client>=5.3.4 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (7.4.7)
Requirement already satisfied: tornado>=6.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from notebook) (6.2)
Requirement already satisfied: entrypoints in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jupyter-client>=5.3.4->notebook) (0.4)
Requirement already satisfied: python-dateutil>=2.8.2 in /opt/homebrew/lib/python3.10/site-packages (from jupyter-client>=5.3.4->notebook) (2.8.2)
Requirement already satisfied: platformdirs in /opt/homebrew/lib/python3.10/site-packages (from jupyter-core>=4.6.1->notebook) (2.5.2)
Requirement already satisfied: jupyter-server>=1.8 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbclassic>=0.4.7->notebook) (1.23.3)
Requirement already satisfied: notebook-shim>=0.1.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbclassic>=0.4.7->notebook) (0.2.2)
Requirement already satisfied: pygments>=2.4.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (2.13.0)
Requirement already satisfied: tinycss2 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (1.2.1)
Requirement already satisfied: beautifulsoup4 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (4.11.1)
Requirement already satisfied: bleach in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (5.0.1)
Requirement already satisfied: mistune<3,>=2.0.3 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (2.0.4)
Requirement already satisfied: defusedxml in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (0.7.1)
Requirement already satisfied: packaging in /opt/homebrew/lib/python3.10/site-packages (from nbconvert->jupyter) (21.3)
Requirement already satisfied: pandocfilters>=1.4.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (1.5.0)
Requirement already satisfied: markupsafe>=2.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (2.1.1)
Requirement already satisfied: nbclient>=0.5.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (0.7.0)
Requirement already satisfied: jupyterlab-pygments in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbconvert->jupyter) (0.2.2)
Requirement already satisfied: fastjsonschema in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbformat->notebook) (2.16.2)
Requirement already satisfied: jsonschema>=2.6 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from nbformat->notebook) (4.17.1)
Requirement already satisfied: ptyprocess in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from terminado>=0.8.3->notebook) (0.7.0)
Requirement already satisfied: argon2-cffi-bindings in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from argon2-cffi->notebook) (21.2.0)
Requirement already satisfied: ipython>=7.23.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipykernel->jupyter) (8.6.0)
Requirement already satisfied: matplotlib-inline>=0.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipykernel->jupyter) (0.1.6)
Requirement already satisfied: psutil in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipykernel->jupyter) (5.9.4)
Requirement already satisfied: debugpy>=1.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipykernel->jupyter) (1.6.3)
Requirement already satisfied: appnope in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipykernel->jupyter) (0.1.3)
Collecting widgetsnbextension~=4.0
  Using cached widgetsnbextension-4.0.5-py3-none-any.whl (2.0 MB)
Collecting jupyterlab-widgets~=3.0
  Using cached jupyterlab_widgets-3.0.5-py3-none-any.whl (384 kB)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jupyter-console->jupyter) (3.0.33)
Collecting qtpy>=2.0.1
  Using cached QtPy-2.3.0-py3-none-any.whl (83 kB)
Requirement already satisfied: jedi>=0.16 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.18.2)
Requirement already satisfied: backcall in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: decorator in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.1.1)
Requirement already satisfied: pickleshare in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: pexpect>4.3 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (4.8.0)
Requirement already satisfied: stack-data in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.6.1)
Requirement already satisfied: attrs>=17.4.0 in /opt/homebrew/lib/python3.10/site-packages (from jsonschema>=2.6->nbformat->notebook) (22.1.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jsonschema>=2.6->nbformat->notebook) (0.19.2)
Requirement already satisfied: anyio<4,>=3.1.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (3.6.2)
Requirement already satisfied: websocket-client in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (1.4.2)
Requirement already satisfied: wcwidth in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter) (0.2.5)
Requirement already satisfied: six>=1.5 in /opt/homebrew/lib/python3.10/site-packages (from python-dateutil>=2.8.2->jupyter-client>=5.3.4->notebook) (1.16.0)
Requirement already satisfied: cffi>=1.0.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from argon2-cffi-bindings->argon2-cffi->notebook) (1.15.1)
Requirement already satisfied: soupsieve>1.2 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from beautifulsoup4->nbconvert->jupyter) (2.3.2.post1)
Requirement already satisfied: webencodings in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/homebrew/lib/python3.10/site-packages (from packaging->nbconvert->jupyter) (3.0.9)
Requirement already satisfied: idna>=2.8 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (3.4)
Requirement already satisfied: sniffio>=1.1 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (1.3.0)
Requirement already satisfied: pycparser in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->notebook) (2.21)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Requirement already satisfied: asttokens>=2.1.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (2.1.0)
Requirement already satisfied: executing>=1.2.0 in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (1.2.0)
Requirement already satisfied: pure-eval in /Users/eleanorboyd/Library/Python/3.10/lib/python/site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (0.2.2)
Installing collected packages: widgetsnbextension, jupyterlab-widgets, qtpy, qtconsole, jupyter-console, ipywidgets, jupyter
Successfully installed ipywidgets-8.0.4 jupyter-1.0.0 jupyter-console-6.4.4 jupyterlab-widgets-3.0.5 qtconsole-5.4.0 qtpy-2.3.0 widgetsnbextension-4.0.5
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 -m jupyter notebook
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: console qtconsole

Jupyter command `jupyter-notebook` not found.
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % /opt/homebrew/bin/python3 -m pip list
Package              Version
-------------------- -----------
anyio                3.6.2
appnope              0.1.3
argon2-cffi          21.3.0
argon2-cffi-bindings 21.2.0
astroid              2.12.13
asttokens            2.1.0
attrs                22.1.0
backcall             0.2.0
beautifulsoup4       4.11.1
black                22.6.0
bleach               5.0.1
cffi                 1.15.1
click                8.1.3
debugpy              1.6.3
decorator            5.1.1
defusedxml           0.7.1
dill                 0.3.6
distlib              0.3.6
entrypoints          0.4
executing            1.2.0
fastjsonschema       2.16.2
filelock             3.8.0
github2              0.6.2
httplib2             0.20.4
idna                 3.4
importlib-resources  5.10.1
iniconfig            1.1.1
ipykernel            6.17.1
ipython              8.6.0
ipython-genutils     0.2.0
ipywidgets           8.0.4
isort                5.10.1
jedi                 0.18.2
Jinja2               3.1.2
jsonschema           4.17.1
jupyter              1.0.0
jupyter_client       7.4.7
jupyter-console      6.4.4
jupyter_core         5.0.0
jupyter-server       1.23.3
jupyterlab-pygments  0.2.2
jupyterlab-widgets   3.0.5
lazy-object-proxy    1.4.1
MarkupSafe           2.1.1
matplotlib-inline    0.1.6
mccabe               0.7.0
mistune              2.0.4
myModule             1.0.0
mypy-extensions      0.4.3
nbclassic            0.4.8
nbclient             0.7.0
nbconvert            7.2.5
nbformat             5.7.0
nest-asyncio         1.5.6
notebook             6.5.2
notebook_shim        0.2.2
packaging            21.3
pandocfilters        1.5.0
parso                0.8.3
pathspec             0.9.0
pexpect              4.8.0
pickleshare          0.7.5
pip                  22.3.1
platformdirs         2.5.2
pluggy               1.0.0
prometheus-client    0.15.0
prompt-toolkit       3.0.33
psutil               5.9.4
ptyprocess           0.7.0
pure-eval            0.2.2
py                   1.11.0
pycparser            2.21
Pygments             2.13.0
pylint               2.15.6
pyparsing            3.0.9
pyrsistent           0.19.2
pytest               7.1.2
python-dateutil      2.8.2
pyzmq                24.0.1
qtconsole            5.4.0
QtPy                 2.3.0
Send2Trash           1.8.0
setuptools           65.4.1
six                  1.16.0
sniffio              1.3.0
soupsieve            2.3.2.post1
stack-data           0.6.1
terminado            0.17.0
tinycss2             1.2.1
tomli                2.0.1
tomlkit              0.11.6
tornado              6.2
tox                  3.27.1
traitlets            5.5.0
typing_extensions    4.4.0
virtualenv           20.17.0
wcwidth              0.2.5
webencodings         0.5.1
websocket-client     1.4.2
wheel                0.37.1
widgetsnbextension   4.0.5
wrapt                1.14.1
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % which jupyter
jupyter not found
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % jupyter notebook
zsh: command not found: jupyter
eleanorboyd@Eleanors-MacBook-Pro tester_for_git_issues % 

@eleanorjboyd
Copy link
Member Author

Sounds good thanks for the help!

@DonJayamanne DonJayamanne reopened this Feb 10, 2023
@DonJayamanne DonJayamanne changed the title Failed to start kernel on a Mac M1 Failed to start kernel on a Mac M1 with homebrew Python Feb 10, 2023
@DonJayamanne
Copy link
Contributor

The problem is simple
Based on the docs the users need to update their PATH variable, its actually event printed in the terminal
More information here #12808 (comment)

@DonJayamanne DonJayamanne added this to the February 2023 milestone Feb 10, 2023
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Feb 27, 2023

This should be fixed in the latest pre-release version
@eleanorjboyd please could you test with the laetst insiders and pre-release version of Jupyter extension and pre-release of P6ytohn extesnion
Please ensure you select the homebew version of Python as the kernel as well as the interpreter to start jupyter

  • Open the command palette, and select the command Select Interpreter to Start Jupyter, and select the Homebrew version of Python
  • When prompted, install the dependencies and things shioudl now work

@connor4312 please could you also test this in the linux environment you used, you can use the same Python (I believe it was apt-get python3) as mentioned here #12632 (comment)

Please let me know how that goes

@DonJayamanne DonJayamanne added the author-verification-requested Issues potentially verifiable by issue author label Feb 27, 2023
@connor4312
Copy link
Member

I got the same error

image

@DonJayamanne
Copy link
Contributor

@connor4312
please confirm you are in vscode insiders, and have the latest pre-release version of Jupyter extension
If you do, then tlease could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

@eleanorjboyd
Copy link
Member Author

@DonJayamanne, yep it worked! Just had to install jupyter on my homebrew version of python and I was good to go. Thanks!

@connor4312
Copy link
Member

jupyter log.txt.zip

@DonJayamanne
Copy link
Contributor

@connor4312 looks like you have the older version of the Jupyter extension, you need version 2023.2.*
Perhaps you might want to install stable version of VS Code and then install the pre-release version
Not sure why you aren't getting last months pre-release versions in your VS Code insiders

@connor4312
Copy link
Member

connor4312 commented Feb 27, 2023

Ah, apologies. Here we go: seems like it detected what was wrong this time

jupyter log2.txt.zip

@DonJayamanne
Copy link
Contributor

@connor4312 please could you run the following and upload the contents of output.txt file
/bin/python3 -m pip install -U --user jupyter notebook --force-reinstall > output.txt

Basically I would like to see all of the output (the logs do not have everything as the packages were already isntalled)

@DonJayamanne
Copy link
Contributor

ms-toolsai-jupyter-insiders.vsix.zip
@connor4312 please could you install this VSIX and let me know how this goes. Thanks, testing for the release

@connor4312
Copy link
Member

That's working for me now!

@DonJayamanne
Copy link
Contributor

closing as verified

@DonJayamanne DonJayamanne added verified Verification succeeded candidate Issue identified as probable candidate for fixing in the next release labels Feb 28, 2023
@DonJayamanne DonJayamanne removed the candidate Issue identified as probable candidate for fixing in the next release label Feb 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
author-verification-requested Issues potentially verifiable by issue author bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants