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.

Remote jupyterhub kernel fails to launch: "waiting for kernel to be idle"

See original GitHub issue

Environment data

  • VS Code version: 1.67.2, 1.68.1
  • Jupyter Extension version (available under the Extensions sidebar): 2022.4.1021342353, 2022.5.1001601848
  • Python Extension version (available under the Extensions sidebar): 2022.8.1
  • OS (Windows | Mac | Linux distro) and version: OSX 12.4
  • Python and/or Anaconda version: various 3.7-3.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Jupyter server running: Remote

Expected behaviour

Remote kernel successfully launches

Actual behaviour

Sits at “Connecting to kernel: Waiting for Jupyter Session to be Idle”

Steps to reproduce:

  1. Select remote URI via “Jupyter: Specify Jupyter Server for connections”
  2. Highlight a cell in file, right click and select “Run in interactive window”
  3. Get message that kernel is starting, then see “kernel failed to launch in time” after timing out

This seems similar to https://github.com/microsoft/vscode-jupyter/issues/9014

Everything worked fine until this morning - I tried downgrading VS Code, the Jupyter extension, the Python extension, no dice. This is on my M1 laptop using the arm build; old Intel MBP running VS Code 1.67.1, jupyter extension v2022.4.1021342353, and python extension v2022.8.1 still works.

The log is kind of confusing - it’s like it’s trying to launch a local and remote server simultaneously? Looking at the kernels on the remote server, it’s certainly talking to it, as it launches a kernel I can see in the web UI when I interact with VS Code. Just fails the waiting for idle…

Please let me know if there’s any other logs or diagnostics that’d be helpful!

Logs

Visual Studio Code (1.68.1, undefined, desktop)
Jupyter Extension Version: 2022.5.1001601848.
Python Extension Version: 2022.8.1.
Workspace folder /Users/<<user redacted>>/Repos/<<project redacted>>
error 16:13:1.106: Exception while attempting zmq : [Error: No native build was found for platform=darwin arch=arm64 runtime=electron abi=101 uv=1 armv=8 libc=glibc node=16.13.0 electron=17.4.7
    loaded from: /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/node_modules/zeromq

	at Function.load.path (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/node_modules/node-gyp-build/index.js:1:3163)
	at load (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/node_modules/node-gyp-build/index.js:1:648)
	at Object.<anonymous> (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/node_modules/zeromq/lib/native.js:1:198)
	at Module.u._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.s._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:32307)
	at Function.b._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:28750)
	at Function._._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:61578)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at _ (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/node_modules/zeromq/lib/index.js:1:144)
	at Module.u._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
	at Module.load (node:internal/modules/cjs/loader:1035:32)
	at Module._load (node:internal/modules/cjs/loader:876:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.s._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:32307)
	at Function.b._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:28750)
	at Function._._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:61578)
	at Module.require (node:internal/modules/cjs/loader:1059:19)
	at _ (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:699)
	at Object.92747 (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:3839954)
	at __webpack_require__ (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:4466880)
	at u.zmqSupported (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:580874)
	at u.isSupportedForLocalLaunch (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:580617)
	at u.get isSupported [as isSupported] (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:580527)
	at t.registerTypes (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:595635)
	at /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:4471788
	at /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:4472541
	at /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:4472549
	at e.activate (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:4472671)
	at Function._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:88:17470)
	at Function._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:88:17131)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:88:14945
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async _activate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:8180)
	at async _waitForDepsThenActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:8122)
	at async _initialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:83:7486)]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 16:13:1.257: LSP Notebooks experiment is disabled -- not in treatment group
info 16:13:1.258: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
info 16:13:1.335: Process Execution: > /usr/bin/python3 -m pip list
> /usr/bin/python3 -m pip list
error 16:13:1.475: Failed to get activated environment variables ourselves [Error: Command failed: conda activate dev_env_20220518 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



	at ChildProcess.exithandler (node:child_process:406:12)
	at ChildProcess.emit (node:events:390:28)
	at maybeClose (node:internal/child_process:1064:16)
	at Socket.<anonymous> (node:internal/child_process:450:11)
	at Socket.emit (node:events:390:28)
	at Pipe.<anonymous> (node:net:687:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate dev_env_20220518 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/printEnvVariables.py"
}
error 16:13:1.475: Execing shell command, Class name = h, completed in 147ms, has a falsy return value, Arg 1: "~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/printEnvVariables.py", Arg 2: {"env":{"ELECTRON_RUN_AS_NODE":"1","USER":"<<user redacted>>","__CFBundleIdentifier":"com.microsoft.VSCode","COMMAND_MODE":"unix2003","LOGNAME":"<<user redacted>>","PATH":"/Applications/Julia-1.7.app/Contents/Resources/julia/bin:/Users/<<user redacted>>/miniforge3/bin:/Users/<<user redacted>>/miniforge3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.LOHbgMKcAg/Listeners","SHELL":"/bin/zsh","HOME":"/Users/<<user redacted>>","__CF_USER_TEXT_ENCODING":"0x1F6:0x0:0x0","TMPDIR":"/var/folders/9g/tb3sfw8d1k7bpxrmflhvxlz40000gp/T/","XPC_SERVICE_NAME":"application.com.microsoft.VSCode.2878061.2878067","XPC_FLAGS":"0x0","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","VSCODE_CWD":"/","VSCODE_NLS_CONFIG":"{\"locale\":\"en-us\",\"availableLanguages\":{},\"_languagePackSupport\":true}","VSCODE_CODE_CACHE_PATH":"/Users/<<user redacted>>/Library/Application Support/Code/CachedData/30d9c6cd9483b2cc586687151bcbcd635f373630","VSCODE_IPC_HOOK":"/Users/<<user redacted>>/Library/Application Support/Code/1.68.1-main.sock","VSCODE_PID":"25614","SHLVL":"0","PWD":"/","OLDPWD":"/","HOMEBREW_PREFIX":"/opt/homebrew","HOMEBREW_CELLAR":"/opt/homebrew/Cellar","HOMEBREW_REPOSITORY":"/opt/homebrew","MANPATH":"/opt/homebrew/share/man::","INFOPATH":"/opt/homebrew/share/info:","CONDA_EXE":"/Users/<<user redacted>>/miniforge3/bin/conda","_CE_M":"","_CE_CONDA":"","CONDA_PYTHON_EXE":"/Users/<<user redacted>>/miniforge3/bin/python","CONDA_SHLVL":"1","CONDA_PREFIX":"/Users/<<user redacted>>/miniforge3","CONDA_DEFAULT_ENV":"base","CONDA_PROMPT_MODIFIER":"(base) ","_":"/Applications/Visual Studio Code.app/Contents/MacOS/Electron","VSCODE_AMD_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_PIPE_LOGGING":"true","VSCODE_VERBOSE_LOGGING":"true","VSCODE_LOG_NATIVE":"false","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_LOG_STACK":"false","VSCODE_IPC_HOOK_EXTHOST":"/var/folders/9g/tb3sfw8d1k7bpxrmflhvxlz40000gp/T/vscode-ipc-2842b700-fb38-406e-ae4d-43f373ee126f.sock","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","PYTHONWARNINGS":"ignore"},"shell":"bash","timeout":60000,"maxBuffer":1000000,"throwOnStdErr":false} [Error: Command failed: conda activate dev_env_20220518 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



	at ChildProcess.exithandler (node:child_process:406:12)
	at ChildProcess.emit (node:events:390:28)
	at maybeClose (node:internal/child_process:1064:16)
	at Socket.<anonymous> (node:internal/child_process:450:11)
	at Socket.emit (node:events:390:28)
	at Pipe.<anonymous> (node:net:687:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate dev_env_20220518 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/printEnvVariables.py"
}
info 16:13:2.68: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python -c "import jupyter"
> ~/miniforge3/envs/dev_env_20220518/bin/python -c "import jupyter"
info 16:13:2.69: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python -c "import notebook"
> ~/miniforge3/envs/dev_env_20220518/bin/python -c "import notebook"
info 16:13:2.144: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python -m jupyter kernelspec --version
> ~/miniforge3/envs/dev_env_20220518/bin/python -m jupyter kernelspec --version
info 16:13:7.113: Creating server with url : <<url redacted>>
info 16:13:7.783: Checking for server existence.
info 16:13:7.784: Checking for server usability.
info 16:13:7.784: Starting notebook server.
info 16:13:7.784: Connecting to server
info 16:13:7.784: Connecting to process server
info 16:13:7.784: Connecting server kernel <<url redacted>>
Connecting to Jupyter server at <<url redacted>>
info 16:13:7.784: Creating server with url : <<url redacted>>
info 16:13:7.785: Connection complete server
info 16:13:7.785: Server started.
info 16:13:7.785: Creating server with url : <<url redacted>>
info 16:13:8.250: Creating server with url : <<url redacted>>
info 16:13:15.414: Starting interactive window for resource '/Users/<<user redacted>>/Repos/<<project redacted>>/src/<<build_tables.py>>.py'
info 16:13:15.498: Attempting to start a server because of preload conditions ...
info 16:13:15.501: Checking for server existence.
info 16:13:15.504: Preferred Remote kernel for Interactive-1.interactive is 52cdd9e4-63bb-4ad9-a398-559d52ec302f
info 16:13:15.504: Switching remote kernel to 52cdd9e4-63bb-4ad9-a398-559d52ec302f for vscode-interactive:Interactive-1.interactive
info 16:13:15.504: Using notebook.selectKernel to force remote kernel for vscode-interactive:Interactive-1.interactive to 52cdd9e4-63bb-4ad9-a398-559d52ec302f
info 16:13:15.504: Checking for server usability.
info 16:13:15.505: Starting notebook server.
info 16:13:15.505: Connecting to server
info 16:13:15.505: Launching server
info 16:13:15.505: Starting Notebook
info 16:13:15.545: Generating custom default config at /var/folders/9g/tb3sfw8d1k7bpxrmflhvxlz40000gp/T/978a2069-1d0e-40d7-8992-795f20f65bca/jupyter_notebook_config.py
info 16:13:15.545: Starting Jupyter Notebook
Starting Jupyter from ~/miniforge3/envs/dev_env_20220518/bin/python with command line --no-browser --notebook-dir="/Users/<<user redacted>>/Repos/<<project redacted>>" --config=/var/folders/9g/tb3sfw8d1k7bpxrmflhvxlz40000gp/T/978a2069-1d0e-40d7-8992-795f20f65bca/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 16:13:15.551: Creating daemon pool for /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/bin/python with env variables count 48
info 16:13:15.552: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 25720
> ~/miniforge3/envs/dev_env_20220518/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 25720
info 16:13:15.552: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 25720
> ~/miniforge3/envs/dev_env_20220518/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 25720
info 16:13:15.553: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 25720
> ~/miniforge3/envs/dev_env_20220518/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 25720
info 16:13:15.581: Starting Jupyter Session id = 'startUsingRemoteKernelSpec:22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98..python3./home/jovyan/my-conda-envs/dask-scratch-env/python./.-m#ipykernel_launcher' for 'Interactive-1.interactive' (disableUI=false)
info 16:13:15.592: Process Execution: > /usr/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/normalizeSelection.py
> /usr/bin/python3 ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/normalizeSelection.py
info 16:13:15.638: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/Users/<<user redacted>>/Repos/<<project redacted>>" --config=/var/folders/9g/tb3sfw8d1k7bpxrmflhvxlz40000gp/T/978a2069-1d0e-40d7-8992-795f20f65bca/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/Users/<<user redacted>>/Repos/<<project redacted>>" --config=/var/folders/9g/tb3sfw8d1k7bpxrmflhvxlz40000gp/T/978a2069-1d0e-40d7-8992-795f20f65bca/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
info 16:13:15.638: Waiting for Jupyter Notebook
info 16:13:15.735: Registering dummy command feature
/Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
info 16:13:15.891: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(

[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>
info 16:13:16.8: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>

[I 16:13:16.007 NotebookApp] Jupyter Notebook 6.4.11 is running at:
info 16:13:16.9: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>
[I 16:13:16.007 NotebookApp] Jupyter Notebook 6.4.11 is running at:

[I 16:13:16.007 NotebookApp] http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
info 16:13:16.9: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>
[I 16:13:16.007 NotebookApp] Jupyter Notebook 6.4.11 is running at:
[I 16:13:16.007 NotebookApp] http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca

info 16:13:16.10: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 16:13:16.007 NotebookApp]  or http://127.0.0.1:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
info 16:13:16.11: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>
[I 16:13:16.007 NotebookApp] Jupyter Notebook 6.4.11 is running at:
[I 16:13:16.007 NotebookApp] http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
[I 16:13:16.007 NotebookApp]  or http://127.0.0.1:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca

info 16:13:16.11: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 16:13:16.007 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
info 16:13:16.13: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>
[I 16:13:16.007 NotebookApp] Jupyter Notebook 6.4.11 is running at:
[I 16:13:16.007 NotebookApp] http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
[I 16:13:16.007 NotebookApp]  or http://127.0.0.1:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
[I 16:13:16.007 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[C 16:13:16.009 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///Users/<<user redacted>>/Library/Jupyter/runtime/nbserver-25878-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
     or http://127.0.0.1:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
info 16:13:16.14: /Users/<<user redacted>>/miniforge3/envs/dev_env_20220518/lib/python3.8/site-packages/traitlets/traitlets.py:2389: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/<<user redacted>>/Repos/<<project redacted>>' instead of '"/Users/<<user redacted>>/Repos/<<project redacted>>"' if you require traitlets >=5.
  warn(
[I 16:13:16.007 NotebookApp] Serving notebooks from local directory: /Users/<<user redacted>>/Repos/<<project redacted>>
[I 16:13:16.007 NotebookApp] Jupyter Notebook 6.4.11 is running at:
[I 16:13:16.007 NotebookApp] http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
[I 16:13:16.007 NotebookApp]  or http://127.0.0.1:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
[I 16:13:16.007 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:13:16.009 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///Users/<<user redacted>>/Library/Jupyter/runtime/nbserver-25878-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca
     or http://127.0.0.1:8888/?token=28cb858c2f08108a1c83a5ea1404c0d11a028dfdd4298bca

info 16:13:16.249: Connecting to process server
info 16:13:16.249: Connecting server kernel http://localhost:8888/
info 16:13:16.250: Creating server with url : http://localhost:8888/
info 16:13:16.251: Connection complete server
info 16:13:16.251: Server started.
info 16:13:16.269: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
info 16:13:16.269: Process Execution: > ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/miniforge3/envs/dev_env_20220518/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/pythonFiles/vscode_datascience_helpers/getServerInfo.py
<<url redacted>>: Kernel started: 2e28ed3f-34bc-4e64-a00d-5b3e9b634a2c
info 16:13:16.669: Waiting for idle on (kernel): 2e28ed3f-34bc-4e64-a00d-5b3e9b634a2c -> unknown
info 16:13:17.505: Results of switching remote kernel: false
info 16:13:51.363: Loading webview. View is notset
info 16:13:51.363: Loading web view...
info 16:13:51.364: Webview panel created.
info 16:13:51.522: Web view react rendered
info 16:14:16.669: Finished waiting for idle on (kernel): 2e28ed3f-34bc-4e64-a00d-5b3e9b634a2c -> unknown
error 16:14:16.669: Shutting down after failing to wait for idle on (kernel): 2e28ed3f-34bc-4e64-a00d-5b3e9b634a2c -> unknown
error 16:14:16.673: Failed to change kernel, re-throwing [a [Error]: The Jupyter notebook server failed to launch in time
	at b.waitForIdleOnSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:182870)
	at async b.createNewKernelSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:454300)
	at async b.connect (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:453121)
	at async u.startNew (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:461492)
	at async a (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400063)
	at async w.createNotebookInstance (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400226)
	at async w.createNotebook (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:401231)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingRemoteKernelSpec',
    interpreter: undefined,
    kernelSpec: {
      specFile: undefined,
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'python3',
      argv: [Array],
      language: 'python',
      executable: '/home/jovyan/my-conda-envs/dask-scratch-env/bin/python',
      display_name: 'Python 3',
      metadata: {},
      env: {},
      interrupt_mode: undefined
    },
    id: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98..python3./home/jovyan/my-conda-envs/dask-scratch-env/python./.-m#ipykernel_launcher',
    baseUrl: '<<url redacted>>',
    serverId: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98'
  }
}
warn 16:14:16.678: Error occurred while trying to start the kernel, options.disableUI=false [a [Error]: The Jupyter notebook server failed to launch in time
	at b.waitForIdleOnSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:182870)
	at async b.createNewKernelSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:454300)
	at async b.connect (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:453121)
	at async u.startNew (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:461492)
	at async a (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400063)
	at async w.createNotebookInstance (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400226)
	at async w.createNotebook (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:401231)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingRemoteKernelSpec',
    interpreter: undefined,
    kernelSpec: {
      specFile: undefined,
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'python3',
      argv: [Array],
      language: 'python',
      executable: '/home/jovyan/my-conda-envs/dask-scratch-env/bin/python',
      display_name: 'Python 3',
      metadata: {},
      env: {},
      interrupt_mode: undefined
    },
    id: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98..python3./home/jovyan/my-conda-envs/dask-scratch-env/python./.-m#ipykernel_launcher',
    baseUrl: '<<url redacted>>',
    serverId: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98'
  }
}
warn 16:14:16.678: Kernel Error, context = start [a [Error]: The Jupyter notebook server failed to launch in time
	at b.waitForIdleOnSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:182870)
	at async b.createNewKernelSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:454300)
	at async b.connect (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:453121)
	at async u.startNew (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:461492)
	at async a (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400063)
	at async w.createNotebookInstance (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400226)
	at async w.createNotebook (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:401231)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingRemoteKernelSpec',
    interpreter: undefined,
    kernelSpec: {
      specFile: undefined,
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'python3',
      argv: [Array],
      language: 'python',
      executable: '/home/jovyan/my-conda-envs/dask-scratch-env/bin/python',
      display_name: 'Python 3',
      metadata: {},
      env: {},
      interrupt_mode: undefined
    },
    id: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98..python3./home/jovyan/my-conda-envs/dask-scratch-env/python./.-m#ipykernel_launcher',
    baseUrl: '<<url redacted>>',
    serverId: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98'
  }
}
info 16:14:16.678: Dispose Kernel 'Interactive-1.interactive' associated with '/Users/<<user redacted>>/Repos/<<project redacted>>/src/<<build_tables.py>>.py'
error 16:14:16.679: Error in execution (get message for cell) [a [Error]: The Jupyter notebook server failed to launch in time
	at b.waitForIdleOnSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:182870)
	at async b.createNewKernelSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:454300)
	at async b.connect (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:453121)
	at async u.startNew (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:461492)
	at async a (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400063)
	at async w.createNotebookInstance (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400226)
	at async w.createNotebook (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:401231)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingRemoteKernelSpec',
    interpreter: undefined,
    kernelSpec: {
      specFile: undefined,
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'python3',
      argv: [Array],
      language: 'python',
      executable: '/home/jovyan/my-conda-envs/dask-scratch-env/bin/python',
      display_name: 'Python 3',
      metadata: {},
      env: {},
      interrupt_mode: undefined
    },
    id: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98..python3./home/jovyan/my-conda-envs/dask-scratch-env/python./.-m#ipykernel_launcher',
    baseUrl: '<<url redacted>>',
    serverId: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98'
  }
}
warn 16:14:16.681: DataScience Error [a [Error]: The Jupyter notebook server failed to launch in time
	at b.waitForIdleOnSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:182870)
	at async b.createNewKernelSession (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:454300)
	at async b.connect (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:453121)
	at async u.startNew (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:461492)
	at async a (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400063)
	at async w.createNotebookInstance (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:400226)
	at async w.createNotebook (/Users/<<user redacted>>/.vscode/extensions/ms-toolsai.jupyter-2022.5.1001601848/out/extension.node.js:2:401231)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingRemoteKernelSpec',
    interpreter: undefined,
    kernelSpec: {
      specFile: undefined,
      interpreterPath: undefined,
      isRegisteredByVSC: undefined,
      name: 'python3',
      argv: [Array],
      language: 'python',
      executable: '/home/jovyan/my-conda-envs/dask-scratch-env/bin/python',
      display_name: 'Python 3',
      metadata: {},
      env: {},
      interrupt_mode: undefined
    },
    id: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98..python3./home/jovyan/my-conda-envs/dask-scratch-env/python./.-m#ipykernel_launcher',
    baseUrl: '<<url redacted>>',
    serverId: '22a1880ff21c3fdb1858fbaf09cf53edbe8970b5acd8147947397a7a5ecd8a98'
  }
}
info 16:14:18.688: Creating server with url : <<url redacted>>
info 16:14:19.152: Creating server with url : <<url redacted>>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andybrnrcommented, Jul 24, 2022

This appears to be resolved in the June VS Code release (VS Code 1.69.2, Jupyter extension v2022.6.1201981810).

1reaction
rchvistcommented, Jul 7, 2022

If it is any helpful, I was running into the same issue on local (windows), when trying to load the ‘base’ python conda env. I did not encounter the issue loading other conda envs. My jupyter output log was also different. Anyways in my case the problem seems to be resolved after the following : python -m pip install ipykernel ipython jedi parso pyzmq -U --force-reinstall

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Kernel Error in Jupyter Notebook
When the system encounters difficulties locating the path which certain programs will run, this error is known as a kernel error in Jupyter ......
Read more >
VS Code using Jupyter: Connecting to kernel: Python 3.6.9
I was using Jupyter-like code cells " #%% " (see docs) to run jupyter notebook in VSCode. And I ran into the same...
Read more >
How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks!
Read more >
Working with Jupyter Notebooks in Visual Studio Code
Create, open, and save Jupyter Notebooks · Work with Jupyter code cells · View, inspect, and filter variables using the Variable Explorer and...
Read more >
Messaging in Jupyter — jupyter_client 7.4.8 documentation
Kernels must implement the execute and kernel info messages, along with the associated busy and idle Kernel status messages. All other message types...
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