Closed kenf1 closed 1 year ago
Same issue here after update. Using conda env, conda in shell works. Using M1 macbook, python 3.10.9
Same issue for me as well with MacBook Pro, python 3.7.16
Same issue here after update. Using homebrew python 3.10.9, M1 MacBook Pro.
Reverting to extension version v2022.11.1003412109
fixes the issue.
@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)
@swerty @kenf1 Thanks for filing (commenting on) this issue and sorry you are running into this issue Please could you try the following:
<python> -m pip install jupyter notebook
<python>
would be the fully qualified path to that virtual environment python executableJupyter: Select Interpreter to Start Jupyter Server
and select that virtual enviornmentClosing as a duplicate of https://github.com/microsoft/vscode-jupyter/issues/12729 @swerty @kenf1 Please reply on the duplicate issue, thank you
@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
@KanikaRajain Please could you enable logging as follows:
Jupyter->Logging
verbose
Jupyter
output panel.@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' }
@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
@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.
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' }
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
@tjalb thanks, I have tried, still not working :(.
@KanikaRajain Please see the comments here and try that solution https://github.com/microsoft/vscode-jupyter/issues/12746#issuecomment-1419672754
@DonJayamanne, I removed and installed anaconda (envs) from scratch. Now it's working. Thank you for your help!
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 ofJupyter 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
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