microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 293 forks source link

Jupyter server crashed. Unable to connect. #12746

Closed kenf1 closed 1 year ago

kenf1 commented 1 year ago

Applies To

What happened?

Get the following error message when attempt to run Python code chunk inside Jupyter notebook: Jupyter server crashed. Unable to connect. because of Jupyter command `jupyter-notebook` not found.

Occurs in all versions (release and pre-release) after v2022.11.1003412109.

Currently using v2022.11.1003412109 but it takes longer to run Python code chunk compared to before.

Setup:

VS Code Version

1.75.0

Jupyter Extension Version

2023.2.1000381022

Jupyter logs

Visual Studio Code (1.75.0, undefined, desktop)
Jupyter Extension Version: 2023.2.1000381022.
Python Extension Version: 2023.2.0.
Workspace folder /User/GH/RnD
warn 06:40:30.895: 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: /User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/node_modules/zeromq

info 06:40:30.953: Attempting to start a server because of preload conditions ...
info 06:40:30.968: LSP Notebooks experiment is enabled
info 06:40:30.973: Checking for server existence.
info 06:40:31.019: Process Execution: > /usr/local/bin/python3 -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> /usr/local/bin/python3 -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 06:40:31.020: Process Execution: > /usr/local/bin/python3 -m pip list
> /usr/local/bin/python3 -m pip list
info 06:40:31.020: Process Execution: > /usr/local/bin/python3 -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> /usr/local/bin/python3 -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 06:40:31.029: Starting interactive window for resource 'Untitled-1' with controller '.jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher (Interactive)'
info 06:40:31.072: Attempting to start a server because of preload conditions ...
info 06:40:31.121: Process Execution: > /usr/local/bin/python3 -m jupyter kernelspec --version
> /usr/local/bin/python3 -m jupyter kernelspec --version
info 06:40:31.182: Process Execution: > /usr/local/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
> /usr/local/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/pythonFiles/vscode_datascience_helpers/getJupyterKernelspecVersion.py
info 06:40:31.228: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]) for '/Interactive-1.interactive' (disableUI=false)
info 06:40:31.286: Connecting to server
info 06:40:31.286: Launching server
info 06:40:31.286: Starting Notebook
info 06:40:31.288: Generating custom default config at /var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/edf82a2a-b6cd-432d-b62f-e9593a1425fc/jupyter_notebook_config.py
Starting Jupyter from /usr/local/bin/python3 with arguments --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/edf82a2a-b6cd-432d-b62f-e9593a1425fc/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 06:40:31.505: Process Execution: > /usr/local/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/edf82a2a-b6cd-432d-b62f-e9593a1425fc/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /usr/local/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/edf82a2a-b6cd-432d-b62f-e9593a1425fc/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 06:40:31.566: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
error 06:40:31.569: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
warn 06:40:31.570: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
warn 06:40:31.570: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
info 06:40:31.576: Process Execution: > /usr/local/bin/python3 -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> /usr/local/bin/python3 -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
info 06:40:31.692: Dispose Kernel '/Interactive-1.interactive' associated with 'Untitled-1'
error 06:40:31.711: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
warn 06:40:31.713: DataScience Error [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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
debug 06:41:04.039: Get Active Interpreter, Class name = ls (started execution), Arg 1: "Untitled-1"
debug 06:41:04.040: Get Active Interpreter, Class name = ls, completed in 1ms, has a truthy return value, Arg 1: "Untitled-1", Return Value: {"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}}
info 06:41:04.040: Starting interactive window for resource 'Untitled-1' with controller '.jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher (Interactive)'
info 06:41:04.083: Attempting to start a server because of preload conditions ...
info 06:41:04.084: Checking for server existence.
debug 06:41:04.084: Checking for server usability.
debug 06:41:04.084: Starting notebook server.
info 06:41:04.084: Connecting to server
info 06:41:04.084: Launching server
info 06:41:04.084: Starting Notebook
info 06:41:04.085: Generating custom default config at /var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/d44c1a30-4460-42d6-a795-3b2dea635513/jupyter_notebook_config.py
debug 06:41:04.085: Starting Jupyter Notebook
Starting Jupyter from /usr/local/bin/python3 with arguments --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/d44c1a30-4460-42d6-a795-3b2dea635513/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
debug 06:41:04.085: Create activated Env, Class name = tc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}}}
debug 06:41:04.085: Getting activated env variables, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.085: Getting activated env variables impl, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.085: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.085: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.085: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.085: Cached custom vars data exists getCustomEnvironmentVariables, /User/GH/RnD
debug 06:41:04.085: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.090: Initialize notebook communications for editor /Interactive-1.interactive
debug 06:41:04.090: Resolving notebook UI Comms (resolve) for /Interactive-1.interactive
debug 06:41:04.090: initialize CommonMessageCoordinator
debug 06:41:04.090: IPyWidgetMessageDispatcher.initialize
debug 06:41:04.112: Initialize notebook communications for editor /Interactive-1.interactive
debug 06:41:04.112: Resolving notebook UI Comms (resolve) for /Interactive-1.interactive
debug 06:41:04.112: initialize CommonMessageCoordinator
debug 06:41:04.112: IPyWidgetMessageDispatcher.initialize
debug 06:41:04.113: Controller selection change completed
debug 06:41:04.113: Storing Preferred remote kernel for /Interactive-1.interactive is undefined
debug 06:41:04.126: Got empty env vars with python /usr/local/bin/python3 in 41ms
debug 06:41:04.126: Getting activated env variables from Python, Class name = ps, completed in 41ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.126: Got env vars with python /usr/local/bin/python3 in 41ms with 0 variables
debug 06:41:04.126: Getting activated env variables impl, Class name = ps, completed in 41ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.126: Getting activated env variables, Class name = ps, completed in 41ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.126: Create ProcessService, Class name = Ha (started execution), Arg 1: "~/GH/RnD"
debug 06:41:04.126: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunNonPythonCode"
debug 06:41:04.126: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.126: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunNonPythonCode"
debug 06:41:04.126: Create ProcessService, Class name = Ha, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD"
debug 06:41:04.126: Creating execution process, Class name = tc, completed in 0ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/User/GH/RnD","external":"file:///User/GH/RnD","path":"/User/GH/RnD","scheme":"file"},"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}}}, Return Value: {}
debug 06:41:04.126: Create activated Env, Class name = tc, completed in 41ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}},"resource":{"$mid":1,"fsPath":"/User/GH/RnD","external":"file:///User/GH/RnD","path":"/User/GH/RnD","scheme":"file"}}
debug 06:41:04.126: Getting activated env variables, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.126: Getting activated env variables impl, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.126: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.126: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.126: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.126: Cached custom vars data exists getCustomEnvironmentVariables, /User/GH/RnD
debug 06:41:04.126: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.128: Got empty env vars with python /usr/local/bin/python3 in 2ms
debug 06:41:04.128: Getting activated env variables from Python, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.128: Got env vars with python /usr/local/bin/python3 in 2ms with 0 variables
debug 06:41:04.128: Getting activated env variables impl, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.128: Getting activated env variables, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.128: Start Jupyter Notebook with JUPYTER_PATH=/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/temp/jupyter
debug 06:41:04.128: Start Jupyter Notebook with PYTHONPATH=
debug 06:41:04.128: Start Jupyter Notebook with PATH variable. PATH=/User/.docker/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/User/Applications/quarto/bin
info 06:41:04.129: Process Execution: > /usr/local/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/d44c1a30-4460-42d6-a795-3b2dea635513/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /usr/local/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/d44c1a30-4460-42d6-a795-3b2dea635513/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
debug 06:41:04.129: 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 06:41:04.176: 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 06:41:04.183: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
debug 06:41:04.191: Interactive Window Editor Created: vscode-interactive:/Interactive-1.interactive with input box: vscode-interactive-input:/InteractiveInput-1
debug 06:41:04.192: start the kernel, options.disableUI=false for /Interactive-1.interactive
debug 06:41:04.192: Start Jupyter Session in kernel.ts with disableUI = false
info 06:41:04.192: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]) for '/Interactive-1.interactive' (disableUI=false)
info 06:41:04.193: Checking for server existence.
debug 06:41:04.193: Checking for server usability.
debug 06:41:04.193: Starting notebook server.
info 06:41:04.193: Connecting to server
info 06:41:04.193: Launching server
info 06:41:04.193: Starting Notebook
info 06:41:04.194: Generating custom default config at /var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/f4e60cfe-1113-4057-854b-db8c52f4dc9e/jupyter_notebook_config.py
debug 06:41:04.194: Starting Jupyter Notebook
Starting Jupyter from /usr/local/bin/python3 with arguments --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/f4e60cfe-1113-4057-854b-db8c52f4dc9e/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
debug 06:41:04.194: Create activated Env, Class name = tc (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}}}
debug 06:41:04.194: Getting activated env variables, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.194: Getting activated env variables impl, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.194: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.194: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.194: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.194: Cached custom vars data exists getCustomEnvironmentVariables, /User/GH/RnD
debug 06:41:04.194: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.238: Got empty env vars with python /usr/local/bin/python3 in 44ms
debug 06:41:04.238: Getting activated env variables from Python, Class name = ps, completed in 44ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.238: Got env vars with python /usr/local/bin/python3 in 44ms with 0 variables
debug 06:41:04.238: Getting activated env variables impl, Class name = ps, completed in 44ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.238: Getting activated env variables, Class name = ps, completed in 44ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.238: Create ProcessService, Class name = Ha (started execution), Arg 1: "~/GH/RnD"
debug 06:41:04.238: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunNonPythonCode"
debug 06:41:04.238: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.238: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunNonPythonCode"
debug 06:41:04.238: Create ProcessService, Class name = Ha, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD"
debug 06:41:04.238: Creating execution process, Class name = tc, completed in 0ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/User/GH/RnD","external":"file:///User/GH/RnD","path":"/User/GH/RnD","scheme":"file"},"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}}}, Return Value: {}
debug 06:41:04.238: Create activated Env, Class name = tc, completed in 44ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}},"resource":{"$mid":1,"fsPath":"/User/GH/RnD","external":"file:///User/GH/RnD","path":"/User/GH/RnD","scheme":"file"}}
debug 06:41:04.238: Getting activated env variables, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.238: Getting activated env variables impl, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.238: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.238: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.238: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.238: Cached custom vars data exists getCustomEnvironmentVariables, /User/GH/RnD
debug 06:41:04.238: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.240: Got empty env vars with python /usr/local/bin/python3 in 2ms
debug 06:41:04.240: Getting activated env variables from Python, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.240: Got env vars with python /usr/local/bin/python3 in 2ms with 0 variables
debug 06:41:04.240: Getting activated env variables impl, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.240: Getting activated env variables, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.240: Start Jupyter Notebook with JUPYTER_PATH=/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/temp/jupyter
debug 06:41:04.240: Start Jupyter Notebook with PYTHONPATH=
debug 06:41:04.240: Start Jupyter Notebook with PATH variable. PATH=/User/.docker/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/User/Applications/quarto/bin
info 06:41:04.241: Process Execution: > /usr/local/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/f4e60cfe-1113-4057-854b-db8c52f4dc9e/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /usr/local/bin/python3 -m jupyter notebook --no-browser --notebook-dir="/User/GH/RnD" --config=/var/folders/z5/skscp0yj5s9dsvw24g6g9_nr0000gp/T/f4e60cfe-1113-4057-854b-db8c52f4dc9e/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
debug 06:41:04.241: 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 06:41:04.287: 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 06:41:04.294: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
warn 06:41:04.294: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
debug 06:41:04.294: Create activated Env, Class name = tc (started execution), Arg 1: {"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}},"allowEnvironmentFetchExceptions":true}
debug 06:41:04.294: Getting activated env variables, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.294: Getting activated env variables impl, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.294: Getting activated env variables from Python, Class name = ps (started execution), Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.294: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.294: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.294: Cached custom vars data exists getCustomEnvironmentVariables, /User/GH/RnD
debug 06:41:04.294: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunPythonCode"
debug 06:41:04.296: Got empty env vars with python /usr/local/bin/python3 in 2ms
debug 06:41:04.296: Getting activated env variables from Python, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.296: Got env vars with python /usr/local/bin/python3 in 2ms with 0 variables
debug 06:41:04.296: Getting activated env variables impl, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>
debug 06:41:04.296: Getting activated env variables, Class name = ps, completed in 2ms, has a falsy return value, Arg 1: "~/GH/RnD", Arg 2: <Uri:/usr/local/bin/python3>, Arg 3: true
debug 06:41:04.296: Create ProcessService, Class name = Ha (started execution), Arg 1: "~/GH/RnD"
debug 06:41:04.296: Get Custom Env Variables, Class name = bc (started execution), Arg 1: "~/GH/RnD", Arg 2: "RunNonPythonCode"
debug 06:41:04.296: Cached data exists getEnvironmentVariables, /User/GH/RnD
debug 06:41:04.296: Get Custom Env Variables, Class name = bc, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD", Arg 2: "RunNonPythonCode"
debug 06:41:04.296: Create ProcessService, Class name = Ha, completed in 0ms, has a truthy return value, Arg 1: "~/GH/RnD"
debug 06:41:04.296: Creating execution process, Class name = tc, completed in 0ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/User/GH/RnD","external":"file:///User/GH/RnD","path":"/User/GH/RnD","scheme":"file"},"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}}}, Return Value: {}
debug 06:41:04.296: Create activated Env, Class name = tc, completed in 2ms, has a truthy return value, Arg 1: {"resource":{"$mid":1,"fsPath":"/User/GH/RnD","external":"file:///User/GH/RnD","path":"/User/GH/RnD","scheme":"file"},"interpreter":{"id":"/usr/local/bin/python3","sysPrefix":"/Library/Frameworks/Python.framework/Versions/3.11","displayPath":{"$mid":1,"path":"/usr/local/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"/usr/local/bin/python3","external":"file:///usr/local/bin/python3","path":"/usr/local/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":11,"patch":1,"raw":"3.11.1 (v3.11.1:a7a450f84a, Dec  6 2022, 15:24:06) [Clang 13.0.0 (clang-1300.0.29.30)]"}},"allowEnvironmentFetchExceptions":true}
info 06:41:04.297: Process Execution: > /usr/local/bin/python3 -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
> /usr/local/bin/python3 -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
debug 06:41:04.398: Registering commtarget jupyter.widget
debug 06:41:04.398: IPyWidgetMessageDispatcher.initialize
debug 06:41:04.401: Checking if product is installed, Class name = qd, completed in 107ms, has a truthy return value, Arg 1: 19, Arg 2: undefined, Return Value: true
debug 06:41:04.401: Are Dependencies Installed, Class name = Su, completed in 107ms, has a truthy return value, Arg 1: ".jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher", Arg 2: undefined, Arg 3: true, Return Value: true
info 06:41:04.420: Dispose Kernel '/Interactive-1.interactive' associated with 'Untitled-1'
debug 06:41:04.420: Kernel got disposed, hence there is no longer a kernel associated with /Interactive-1.interactive
error 06:41:04.421: 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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}
debug 06:41:04.421: Start cell 1 execution @ undefined
debug 06:41:04.421: End cell 1 execution @ undefined, started @ undefined, elapsed time = 0s
warn 06:41:04.421: DataScience Error [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 (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255303)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:17:255863)
    at t.n (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:641996)
    at t.__tryOrUnsub (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642236)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:642129)
    at t._complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640645)
    at t.complete (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:640344)
    at ChildProcess.<anonymous> (/User/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000381022/out/extension.node.js:2:1741500)
    at Object.onceWrapper (node:events:646:26)
    at ChildProcess.emit (node:events:538:35)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {
  category: 'jupyterconnection'
}

Coding Language and Runtime Version

Python 3.11.1 (installed locally via .pkg)

Language Extension Version (if applicable)

2023.2.0

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

jonaslsaa commented 1 year ago

Same issue here after update. Using conda env, conda in shell works. Using M1 macbook, python 3.10.9

KanikaRajain commented 1 year ago

Same issue for me as well with MacBook Pro, python 3.7.16

seanwertheim commented 1 year ago

Same issue here after update. Using homebrew python 3.10.9, M1 MacBook Pro.

Reverting to extension version v2022.11.1003412109 fixes the issue.

DonJayamanne commented 1 year ago

@TheVoxcraft @KanikaRajain @swerty You seem to be experiencing the same as https://github.com/microsoft/vscode-jupyter/issues/12714 please install the latest pre-release version of the Jupyter Extension

The latest pre-release version is v2023.2.****

Click the Switch to Pre-Release Version in the extension page (see below)

Screenshot 2023-02-04 at 09 24 37
DonJayamanne commented 1 year ago

@swerty @kenf1 Thanks for filing (commenting on) this issue and sorry you are running into this issue Please could you try the following:

DonJayamanne commented 1 year ago

Closing as a duplicate of https://github.com/microsoft/vscode-jupyter/issues/12729 @swerty @kenf1 Please reply on the duplicate issue, thank you

KanikaRajain commented 1 year ago

@DonJayamanne, I have switched to Pre-Release Version, still same error.

Failed to start the Kernel.

Jupyter server crashed. Unable to connect.

Error code from Jupyter: 1

Screenshot 2023-02-07 at 09 56 11
DonJayamanne commented 1 year ago

@KanikaRajain Please could you enable logging as follows:

KanikaRajain commented 1 year ago

@DonJayamanne, please see the output. Thanks!

info 14:51:25.160: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd04789ac1b15bebb2ee0f3ed8d19aa067fd1ba084b1140f32fb36e96047d170b1d./Users/Kanika/opt/anaconda3/envs/jugaad/python./Users/Kanika/opt/anaconda3/envs/jugaad/python.-m#ipykernel_launcher (Python Path: /Users/Kanika/opt/anaconda3/envs/jugaad, EnvType: Conda, EnvName: 'jugaad', Version: 3.7.16 (default, Jan 17 2023, 09:28:58) [Clang 14.0.6 ]) for '/Users/Kanika/Desktop/g1_cone/3patches/main/middlepts_LOOP.ipynb' (disableUI=false) info 14:51:25.161: Checking for server existence. info 14:51:25.161: Connecting to server info 14:51:25.161: Launching server info 14:51:25.162: Starting Notebook info 14:51:25.162: Generating custom default config at /var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/82d91091-68d2-413c-b213-6d52a0b7fc46/jupyter_notebook_config.py Starting Jupyter from /opt/homebrew/bin/python3.11 with arguments --no-browser --notebook-dir="/Users/Kanika/Desktop/g1_cone/3patches/main" --config=/var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/82d91091-68d2-413c-b213-6d52a0b7fc46/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 info 14:51:25.203: Process Execution: > /opt/homebrew/bin/python3.11 -m jupyter notebook --no-browser --notebook-dir="/Users/Kanika/Desktop/g1_cone/3patches/main" --config=/var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/82d91091-68d2-413c-b213-6d52a0b7fc46/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0

/opt/homebrew/bin/python3.11 -m jupyter notebook --no-browser --notebook-dir="/Users/Kanika/Desktop/g1_cone/3patches/main" --config=/var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/82d91091-68d2-413c-b213-6d52a0b7fc46/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 14:51:25.268: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255303)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255863)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:641996)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642236)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642129)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640645)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640344)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:1741500)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' } warn 14:51:25.268: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255303)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255863)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:641996)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642236)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642129)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640645)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640344)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:1741500)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' } info 14:51:25.272: Process Execution: > ~/opt/anaconda3/envs/jugaad/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"

~/opt/anaconda3/envs/jugaad/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" info 14:51:25.471: Dispose Kernel '/Users/Kanika/Desktop/g1_cone/3patches/main/middlepts_LOOP.ipynb' associated with '/Users/Kanika/Desktop/g1_cone/3patches/main/middlepts_LOOP.ipynb' error 14:51:25.471: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255303)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255863)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:641996)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642236)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642129)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640645)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640344)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:1741500)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' } error 14:51:25.471: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255303)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:17:255863)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:641996)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642236)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:642129)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640645)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:640344)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.2.1000391021/out/extension.node.js:2:1741500)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' }

DonJayamanne commented 1 year ago

@KanikaRajain thanks for the logs A new version of the Jupyter extension was releaesd a few hours ago, please could you install that and give that a go That should fix this issue. If not please do ping back here with the same logs

KanikaRajain commented 1 year ago

@DonJayamanne, this might be a stupid question :| -- Should I download new version of jupyter in the env or should I install the new version of jupyter in vs code? I didn't see any newer version in the extensions (vs code) but I reinstall it again and pressed "switch to pre-release version" and here is the output.

Screenshot 2023-02-08 at 11 25 23

info 11:17:08.642: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd04789ac1b15bebb2ee0f3ed8d19aa067fd1ba084b1140f32fb36e96047d170b1d./Users/Kanika/opt/anaconda3/envs/jugaad/python./Users/Kanika/opt/anaconda3/envs/jugaad/python.-m#ipykernel_launcher (Python Path: /Users/Kanika/opt/anaconda3/envs/jugaad, EnvType: Conda, EnvName: 'jugaad', Version: 3.7.16 (default, Jan 17 2023, 09:28:58) [Clang 14.0.6 ]) for '/Users/Kanika/Desktop/g1_cone/3patches/main/middlepts_LOOP.ipynb' (disableUI=false) info 11:17:08.642: Checking for server existence. info 11:17:08.643: Connecting to server info 11:17:08.643: Launching server info 11:17:08.643: Starting Notebook info 11:17:08.644: Generating custom default config at /var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/5a77395f-a910-4646-be5b-e03befde2dce/jupyter_notebook_config.py Starting Jupyter from /opt/homebrew/bin/python3.11 with arguments --no-browser --notebook-dir="/Users/Kanika/Desktop/g1_cone/3patches/main" --config=/var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/5a77395f-a910-4646-be5b-e03befde2dce/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 info 11:17:08.684: Process Execution: > /opt/homebrew/bin/python3.11 -m jupyter notebook --no-browser --notebook-dir="/Users/Kanika/Desktop/g1_cone/3patches/main" --config=/var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/5a77395f-a910-4646-be5b-e03befde2dce/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0

/opt/homebrew/bin/python3.11 -m jupyter notebook --no-browser --notebook-dir="/Users/Kanika/Desktop/g1_cone/3patches/main" --config=/var/folders/kr/rrpqkjyx5rb69lb9t50r7_1w0000gp/T/5a77395f-a910-4646-be5b-e03befde2dce/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:17:08.740: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:254981)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:255541)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:701037)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700930)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699446)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:1800927)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' } warn 11:17:08.740: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:254981)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:255541)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:701037)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700930)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699446)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:1800927)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' } info 11:17:08.744: Process Execution: > ~/opt/anaconda3/envs/jugaad/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"

~/opt/anaconda3/envs/jugaad/bin/python -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" info 11:17:09.108: Dispose Kernel '/Users/Kanika/Desktop/g1_cone/3patches/main/middlepts_LOOP.ipynb' associated with '/Users/Kanika/Desktop/g1_cone/3patches/main/middlepts_LOOP.ipynb' error 11:17:09.109: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:254981)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:255541)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:701037)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700930)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699446)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:1800927)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' } error 11:17:09.109: 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/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:254981)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:17:255541)
at t.n (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700797)
at t.__tryOrUnsub (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:701037)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:700930)
at t._complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699446)
at t.complete (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:699145)
at ChildProcess.<anonymous> (/Users/Kanika/.vscode/extensions/ms-toolsai.jupyter-2023.1.2010391206/out/extension.node.js:2:1800927)
at Object.onceWrapper (node:events:646:26)
at ChildProcess.emit (node:events:538:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)] {

category: 'jupyterconnection' }

tjalb commented 1 year ago

I had the same issue and doing pip install --upgrade --force-reinstall --no-cache-dir jupyter solved this problem. Now I "only" have the problem #12747

KanikaRajain commented 1 year ago

@tjalb thanks, I have tried, still not working :(.

DonJayamanne commented 1 year ago

@KanikaRajain Please see the comments here and try that solution https://github.com/microsoft/vscode-jupyter/issues/12746#issuecomment-1419672754

KanikaRajain commented 1 year ago

@DonJayamanne, I removed and installed anaconda (envs) from scratch. Now it's working. Thank you for your help!