question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Failed to start the kernel"

See original GitHub issue

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

VSCode always said Jupyter kernel failed to start on my local machine after updated to 2022.2. Reverting the extension version to 2022.1 can solve this issue.

However, the local Jupyter server launched successfully. I can browse it with the URL in logs and run Python code.

Translations in logs:

  • “内核 Python 3.8.10 不能使用。查看 Jupyter 输出标签页了解更多信息。”:“Kernel Python 3.8.10 is not available. Check Jupyter output tab for further details”

VS Code Version

Version: 1.65.0 Commit: b5205cc8eb4fbaa726835538cd82372cc0222d43 Date: 2022-03-02T11:12:36.248Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Linux x64 5.13.0-28-generic snap

Jupyter Extension Version

2022.2.102

Jupyter logs

Visual Studio Code (1.65.0, undefined, desktop)
Jupyter Extension Version: 2022.2.1020642448.
Python Extension Version: 2022.2.1924087327.
用户属于实验组 'jupyterTest'
用户属于实验组 'jupyterEnhancedDataViewer'
Error 16:01:57: Exception while attempting zmq : Error: /snap/core/current/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/node_modules/zeromq/prebuilds/linux-x64/electron.napi.glibc.node)
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1185:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1846)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Module._load (internal/modules/cjs/loader.js:823:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Function.n._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32148)
    at Function._._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28737)
    at Function.g._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:60372)
    at Module.require (internal/modules/cjs/loader.js:1006:19)
    at h (/snap/code/89/usr/share/code/resources/app/out/vs/loader.js:4:699)
    at load (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/node_modules/node-gyp-build/index.js:1:605)
    at Object.<anonymous> (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/node_modules/zeromq/lib/native.js:1:198)
    at Module.u._compile (/snap/code/89/usr/share/code/resources/app/out/vs/loader.js:4:1313)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1155:10)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Module._load (internal/modules/cjs/loader.js:823:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Function.n._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32148)
    at Function._._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28737)
    at Function.g._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:60372)
    at Module.require (internal/modules/cjs/loader.js:1006:19)
    at h (/snap/code/89/usr/share/code/resources/app/out/vs/loader.js:4:699)
    at Object.<anonymous> (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/node_modules/zeromq/lib/index.js:1:144)
    at Module.u._compile (/snap/code/89/usr/share/code/resources/app/out/vs/loader.js:4:1313)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1155:10)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Module._load (internal/modules/cjs/loader.js:823:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Function.n._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32148)
    at Function._._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28737)
    at Function.g._load (/snap/code/89/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:60372)
    at Module.require (internal/modules/cjs/loader.js:1006:19)
    at h (/snap/code/89/usr/share/code/resources/app/out/vs/loader.js:4:699)
    at Object.92747 (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:3878485)
    at __webpack_require__ (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:4545798)
    at d.zmqSupported (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:973026)
    at d.isSupportedForLocalLaunch (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:972817)
    at d.get isSupported [as isSupported] (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:972727)
    at t.registerTypes (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:983912)
    at /home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:1070474
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at /home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:4547373
    at e.activate (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:4547050)
Info 16:01:57: Old kernelspecs (created by Jupyter extension) stored in directory /home/xhtang/.local/share/jupyter/kernels/__old_vscode_kernelspecs
Info 16:01:57: Preferred kernel connection found in cache .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher
Info 16:01:57: PreferredConnection: .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher found for NotebookDocument: ~/crypto-log/monthly_report.ipynb
Info 16:01:57: Early registration of controller for Kernel connection .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher
Info 16:01:57: TargetController found ID: .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher for document ~/crypto-log/monthly_report.ipynb
Info 16:01:57: Setting controller affinity for ~/crypto-log/monthly_report.ipynb .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher
Info 16:01:57: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 16:01:57: Creating controller for jupyter-notebook with interpreter /usr/bin/python3.8
Info 16:01:57: Getting activation commands for /usr/bin/python3.8 are not cached. May take a while.
Info 16:01:57: Interrupt requested & no kernel.
Info 16:01:57: Setting setActiveController for ~/crypto-log/monthly_report.ipynb
Info 16:01:57: KernelProvider switched kernel to id = .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher
Info 16:01:57: Starting Notebook in kernel.ts id = .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher
Info 16:01:57: Checking for server existence.
Info 16:01:57: Checking for server usability.
Info 16:01:57: Process Execution: > /usr/bin/python3.8 -m pip list
> /usr/bin/python3.8 -m pip list
Info 16:01:57: Process Execution: > /usr/bin/python3.8 -c "import jupyter"
> /usr/bin/python3.8 -c "import jupyter"
Info 16:01:57: Process Execution: > /usr/bin/python3.8 -c "import notebook"
> /usr/bin/python3.8 -c "import notebook"
Info 16:01:57: Process Execution: > /usr/bin/python3.8 -m jupyter kernelspec --version
> /usr/bin/python3.8 -m jupyter kernelspec --version
Info 16:01:57: Registering dummy command feature
Info 16:01:57: Starting notebook server.
Info 16:01:57: Connecting to server
Info 16:01:57: Launching server
Info 16:01:57: Starting Notebook
Info 16:01:57: Generating custom default config at /tmp/eea54227-9425-464d-835b-ffefbccfa5d3/jupyter_notebook_config.py
Info 16:01:57: Starting Jupyter Notebook
用命令行 --no-browser --notebook-dir="/home/txh/crypto-log" --config=/tmp/eea54227-9425-464d-835b-ffefbccfa5d3/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0 从 /usr/bin/python3.8 启动 Jupyter
Info 16:01:58: Creating daemon pool for /usr/bin/python3.8 with env variables count 89
Info 16:01:58: Process Execution: > /usr/bin/python3.8 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 828064
> /usr/bin/python3.8 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 828064
Info 16:01:58: Process Execution: > /usr/bin/python3.8 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 828064
> /usr/bin/python3.8 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 828064
Info 16:01:58: Process Execution: > /usr/bin/python3.8 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 828064
> /usr/bin/python3.8 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 828064
Info 16:01:58: Process Execution: > /usr/bin/python3.8 (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/txh/crypto-log" --config=/tmp/eea54227-9425-464d-835b-ffefbccfa5d3/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /usr/bin/python3.8 (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/txh/crypto-log" --config=/tmp/eea54227-9425-464d-835b-ffefbccfa5d3/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 16:01:58: Waiting for Jupyter Notebook
/home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(

[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log

[I 16:01:58.453 NotebookApp] Jupyter Notebook 6.4.3 is running at:
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log
[I 16:01:58.453 NotebookApp] Jupyter Notebook 6.4.3 is running at:

[I 16:01:58.453 NotebookApp] http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log
[I 16:01:58.453 NotebookApp] Jupyter Notebook 6.4.3 is running at:
[I 16:01:58.453 NotebookApp] http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364

Info 16:01:58: Process Execution: > /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 16:01:58.453 NotebookApp]  or http://127.0.0.1:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log
[I 16:01:58.453 NotebookApp] Jupyter Notebook 6.4.3 is running at:
[I 16:01:58.453 NotebookApp] http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
[I 16:01:58.453 NotebookApp]  or http://127.0.0.1:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364

Info 16:01:58: Process Execution: > /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 16:01:58.453 NotebookApp] 使用control-c停止此服务器并关闭所有内核(两次跳过确认).
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log
[I 16:01:58.453 NotebookApp] Jupyter Notebook 6.4.3 is running at:
[I 16:01:58.453 NotebookApp] http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
[I 16:01:58.453 NotebookApp]  or http://127.0.0.1:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
[I 16:01:58.453 NotebookApp] 使用control-c停止此服务器并关闭所有内核(两次跳过确认).

[C 16:01:58.456 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/txh/.local/share/jupyter/runtime/nbserver-828261-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
     or http://127.0.0.1:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
Info 16:01:58: /home/txh/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/txh/crypto-log' instead of '"/home/txh/crypto-log"' – or use CUnicode.
  warn(
[I 16:01:58.453 NotebookApp] 启动notebooks 在本地路径: /home/txh/crypto-log
[I 16:01:58.453 NotebookApp] Jupyter Notebook 6.4.3 is running at:
[I 16:01:58.453 NotebookApp] http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
[I 16:01:58.453 NotebookApp]  or http://127.0.0.1:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
[I 16:01:58.453 NotebookApp] 使用control-c停止此服务器并关闭所有内核(两次跳过确认).
[C 16:01:58.456 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/txh/.local/share/jupyter/runtime/nbserver-828261-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364
     or http://127.0.0.1:8888/?token=a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364

Info 16:01:58: Connecting to process server
Info 16:01:58: Connecting server kernel http://localhost:8888/
Info 16:01:58: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"a8c2294fe05b6c1d2c9171411f1ce9c4517104ca7c4bc364","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 16:01:58: Connection complete server
Info 16:01:58: Server started.
Info 16:01:58: Process Execution: > /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 16:01:58: Process Execution: > /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /usr/bin/python3.8 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 16:02:01.468 NotebookApp] Creating new notebook in 
Info 16:02:01: installMissingDependencies /usr/bin/python3.8
Info 16:02:01: IPykernel found previously in this environment /usr/bin/python3.8
Info 16:02:01: Spec argv[0] updated from '/usr/bin/python3.8' to '/usr/bin/python3.8'
Info 16:02:01: Starting a new session for kernel id = .jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher, name = python3810jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6
[I 16:02:01.539 NotebookApp] Kernel started: d1faf0b5-fcd4-443e-be27-f8d54970d828, name: python3810jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6
Info 16:02:01: Waiting for idle on (kernel): d1faf0b5-fcd4-443e-be27-f8d54970d828 -> unknown
[W 16:02:01.552 NotebookApp] delete /monthly_report-jvsc-2ecfeead-e9fe-43db-9f46-f6511d5f6db2.ipynb
[I 16:02:04.541 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
[I 16:02:07.549 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
[I 16:02:10.554 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
[I 16:02:13.561 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
[W 16:02:16.568 NotebookApp] KernelRestarter: restart failed
[W 16:02:16.568 NotebookApp] Kernel d1faf0b5-fcd4-443e-be27-f8d54970d828 died, removing from map.
Error 16:03:01: Failed to change kernel TypeError: Cannot read property 'statusChanged' of null
    at C.waitForIdleOnSession (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:267513)
    at C.createNewKernelSession (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:610331)
    at C.connect (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:609167)
    at m.startNew (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:617517)
    at a (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:742232)
    at w.createNotebookInstance (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:742380)
    at w.createNotebook (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:743323)
Error 16:03:01: failed to create INotebook in kernel, UI Disabled = true c [Error]: 内核 Python 3.8.10 不能使用。查看 Jupyter 输出标签页了解更多信息。
    at C.createNewKernelSession (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:610534)
    at C.connect (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:609167)
    at m.startNew (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:617517)
    at a (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:742232)
    at w.createNotebookInstance (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:742380)
    at w.createNotebook (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:743323) {
  category: 'invalidkernel',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/txh/.local/share/jupyter/kernels/python3810jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6/kernel.json',
      interpreterPath: '/usr/bin/python3.8',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6',
      argv: [Array],
      language: 'python',
      path: '/usr/bin/python3.8',
      display_name: 'Python 3.8.3 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'Unknown',
      envName: '',
      envPath: '',
      path: '/usr/bin/python3.8',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: 'Python 3.8.3 64-bit'
    },
    id: '.jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher'
  }
}
Error 16:03:01: failed to start INotebook in kernel, UI Disabled = true c [Error]: 内核 Python 3.8.10 不能使用。查看 Jupyter 输出标签页了解更多信息。
    at C.createNewKernelSession (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:610534)
    at C.connect (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:609167)
    at m.startNew (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:617517)
    at a (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:742232)
    at w.createNotebookInstance (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:742380)
    at w.createNotebook (/home/txh/.vscode/extensions/ms-toolsai.jupyter-2022.2.1020642448/out/client/extension.js:2:743323) {
  category: 'invalidkernel',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/txh/.local/share/jupyter/kernels/python3810jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6/kernel.json',
      interpreterPath: '/usr/bin/python3.8',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6',
      argv: [Array],
      language: 'python',
      path: '/usr/bin/python3.8',
      display_name: 'Python 3.8.3 64-bit',
      metadata: [Object],
      env: {}
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'Unknown',
      envName: '',
      envPath: '',
      path: '/usr/bin/python3.8',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: 'Python 3.8.3 64-bit'
    },
    id: '.jvsc74a57bd0df0893f56f349688326838aaeea0de204df53a132722cbd565e54b24a8fec5f6./usr/bin/python3.8./usr/bin/python3.8.-m#ipykernel_launcher'
  }
}
[W 16:03:01.561 NotebookApp] Timeout waiting for kernel_info reply from d1faf0b5-fcd4-443e-be27-f8d54970d828
[E 16:03:01.562 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: d1faf0b5-fcd4-443e-be27-f8d54970d828)

Coding Language and Runtime Version

Python 3.8.10

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
DonJayamannecommented, Mar 7, 2022

Temporary Solution until a fix is published tomorrow (7th March PST)

Please install the pre-release version of the Extension as a temporary work around. Just go into the extension panel and install the pre-release version see below. Click the Switch to pre-release version image

Once installed you should see the green badge indicating you are on pre-release image

2reactions
Tartenpi0mcommented, Mar 5, 2022

Same issue but the pre-release version of the extension fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to start the kernel on jupyter notebook - Stack Overflow
jupyter needs python 3.6 for launching. It wouldn't start if I switch to python 3.7 . After launching, it fails to start the...
Read more >
How to Fix Kernel Error in Jupyter Notebook
On launch or while working on a project, there is a high chance you will come across a Kernel Error. Before we get...
Read more >
"Failed to start kernel" with Jupyter Extension v2022 ... - GitHub
The kernel will not start when running a cell in a Jupyter notebook. I am connecting to a remote server via ssh through...
Read more >
What to do when things go wrong - The Jupyter Notebook
As a result, when encountering kernel startup issues, again, check the argv stanza and verify it's pointing to a valid file. You may...
Read more >
Solved: Failed to start the kernel - Dataiku Community
Hi, I was working on a notebook and needed to restart the kernel. But the kernel never restarted and crashed with this error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found