Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unable to start kernel - Waiting for Jupiter Session to be Idle (Kernel fails to start as completions request crahes without sending a response back) #9014

Closed
2 tasks done
jcn2185 opened this issue Feb 13, 2022 · 18 comments · Fixed by #9043
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@jcn2185
Copy link

jcn2185 commented Feb 13, 2022

Applies To

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

What happened?

First of all - thank you so much for making this extension!

Expected: I run docker container tensorflow/tensorflow:2.6.0-gpu-jupyter on my server that has a GPU, since I am connecting from a M1 Mac. I have used this for weeks without issue. I would connect to the server with IP + token and the system would just work.

Actually:

  • I restarted my docker container yesterday on the server and opened VSCode. I think the plug-in as able to connect to my server, but when I try to run any cells, it just says Connecting to kernel: Python 3: Waiting for Jupiter Session to be idle. This message stays up for hours even.
  • In the top right, where I would select the kernel also, I always thought it would say (Remote) next to the kernel name, so I'm not sure if now my system and the server's kernels are getting confused?
  • I logged into the jupyter URL via browser and was able to see Notebook running so it's like commands are being sent but not received. I wonder if the ZeroMQ error is related as mentioned at the top of the Jupyter Logs output.

Anyways, I pasted the Jupyter extension logs below. To help explain the logs better and put a few character returns in for easier reading.

  • Everything up to and including 09:50:32: This is me just starting up VSCode
  • 09:51:08 - This is me connecting to the server by specifying the URI + token
  • 09:51:52 - This is mean trying to execute a cell.

VS Code Version

Version: 1.64.2 (Universal) Commit: f80445acd5a3dadef24aa209168452a3d97cc326 Date: 2022-02-09T22:00:58.347Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin arm64 20.6.0

Jupyter Extension Version

v2022.1.1201831736

Jupyter logs

Visual Studio Code (1.64.2, undefined, desktop)
Jupyter Extension Version: 2022.1.1201831736.
Python Extension Version: 2022.0.1814523869.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Error 09:50:32: Exception while attempting zmq : [Error: No native build was found for platform=darwin arch=arm64 runtime=electron abi=89 uv=1 armv=8 libc=glibc node=14.16.0 electron=13.5.2
    loaded from: /Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/node_modules/zeromq

    at Function.load.path (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/node_modules/node-gyp-build/index.js:59:9)
    at load (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/node_modules/node-gyp-build/index.js:21:30)
    at Object.<anonymous> (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/node_modules/zeromq/lib/native.js:6:43)
    at Module.u._compile (/Applications/Visual Studio Code.app/Contents/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.i._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:32271)
    at Function.p._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:28855)
    at Function.v._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:107:60382)
    at Module.require (internal/modules/cjs/loader.js:1006:19)
    at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:699)
    at Object.<anonymous> (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/node_modules/zeromq/lib/index.js:3:16)
    at Module.u._compile (/Applications/Visual Studio Code.app/Contents/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.i._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:32271)
    at Function.p._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:112:28855)
    at Function.v._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:107:60382)
    at Module.require (internal/modules/cjs/loader.js:1006:19)
    at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:699)
    at Object.<anonymous> (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:51:195125)
    at n (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:1:186)
    at d.zmqSupported (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:113:223967)
    at d.isSupportedForLocalLaunch (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:113:223758)
    at d.get isSupported [as isSupported] (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:113:223668)
    at t.registerTypes (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:66:1057793)
    at /Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:66:275217
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async /Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:51:785307
    at async t.activate (/Users/topcat/.vscode/extensions/ms-toolsai.jupyter-2022.1.1201831736/out/client/extension.js:51:784986)
    at async Promise.all (index 0)]
Info 09:50:32: Checking for server existence.
Info 09:50:32: Checking for server usability.
Info 09:50:32: Starting notebook server.
Info 09:50:32: Connecting to server
Info 09:50:32: Connecting to process server
Info 09:50:32: Connecting server kernel http://192.168.1.180:8888/
Connecting to Jupyter server at http://192.168.1.180:8888/
Info 09:50:32: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:50:32: Connection complete server
Info 09:50:32: Server started.
Info 09:50:32: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:50:32: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 09:50:33: Disposing session manager
Info 09:50:33: SessionManager - dispose contents manager
Info 09:50:33: ShutdownSessionAndConnection - dispose session manager
Info 09:50:33: Finished disposing jupyter session manager
Info 09:50:33: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:50:33: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:50:33: Disposing session manager
Info 09:50:33: SessionManager - dispose contents manager
Info 09:50:33: ShutdownSessionAndConnection - dispose session manager
Info 09:50:33: Finished disposing jupyter session manager
Info 09:50:33: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:50:33: Disposing session manager
Info 09:50:33: SessionManager - dispose contents manager
Info 09:50:33: ShutdownSessionAndConnection - dispose session manager
Info 09:50:33: Finished disposing jupyter session manager
Info 09:50:33: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:50:33: Disposing session manager
Info 09:50:33: SessionManager - dispose contents manager
Info 09:50:33: ShutdownSessionAndConnection - dispose session manager
Info 09:50:33: Finished disposing jupyter session manager
Info 09:50:33: Find preferred kernel for ~/Documents/Code/processor/Classification copy.ipynb with metadata {"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}} & preferred interpreter 
Info 09:50:33: Preferred Remote kernel for ~/Documents/Code/processor/Classification copy.ipynb is 29edf0b4-7eb9-4b0f-bb4b-9154a6a8cda0
Info 09:50:33: PreferredConnection: 29edf0b4-7eb9-4b0f-bb4b-9154a6a8cda0 found for NotebookDocument: ~/Documents/Code/processor/Classification copy.ipynb
Info 09:50:33: TargetController found ID: 29edf0b4-7eb9-4b0f-bb4b-9154a6a8cda0 for document ~/Documents/Code/processor/Classification copy.ipynb
Info 09:50:33: Setting controller affinity for ~/Documents/Code/processor/Classification copy.ipynb 29edf0b4-7eb9-4b0f-bb4b-9154a6a8cda0
Info 09:50:33: Disposing session manager
Info 09:50:33: SessionManager - dispose contents manager
Info 09:50:33: ShutdownSessionAndConnection - dispose session manager
Info 09:50:33: Finished disposing jupyter session manager
Info 09:50:33: Find preferred kernel for ~/Documents/Code/processor/Classification.ipynb with metadata {"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"}} & preferred interpreter 
Info 09:50:33: Preferred Remote kernel for ~/Documents/Code/processor/Classification.ipynb is 46b01be8-6f93-4cca-a637-5454eab31f94
Info 09:50:33: PreferredConnection: http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher found for NotebookDocument: ~/Documents/Code/processor/Classification.ipynb
Info 09:50:33: TargetController found ID: http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher for document ~/Documents/Code/processor/Classification.ipynb
Info 09:50:33: Setting controller affinity for ~/Documents/Code/processor/Classification.ipynb http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
Info 09:50:33: Interrupt requested & no kernel.
Info 09:50:33: Setting setActiveController for ~/Documents/Code/processor/Classification copy.ipynb
Info 09:50:33: Setting setActiveController for ~/Documents/Code/processor/Classification.ipynb
Info 09:50:33: KernelProvider switched kernel to id = http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
Info 09:50:33: KernelProvider switched kernel to id = http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
Info 09:50:33: Creating controller for jupyter-notebook with interpreter /opt/homebrew/bin/python3
Info 09:50:33: Getting activation commands for /opt/homebrew/bin/python3 are not cached. May take a while.
Info 09:50:33: Creating controller for jupyter-notebook with interpreter /opt/homebrew/bin/python3
Info 09:50:33: Process Execution: > /opt/homebrew/bin/python3 -c "import jupyter"
> /opt/homebrew/bin/python3 -c "import jupyter"
Info 09:50:33: Process Execution: > /opt/homebrew/bin/python3 -c "import notebook"
> /opt/homebrew/bin/python3 -c "import notebook"
Info 09:50:33: Process Execution: > /opt/homebrew/bin/python3 -m pip list
> /opt/homebrew/bin/python3 -m pip list
Info 09:50:33: Registering dummy command feature



Info 09:51:08: Checking for server existence.
Info 09:51:08: Checking for server usability.
Info 09:51:08: Starting notebook server.
Info 09:51:08: Server started.
Info 09:51:08: Creating server with settings : {"baseUrl":"http://192.168.1.180:8888/","appUrl":"","wsUrl":"ws://192.168.1.180:8888/","token":"finenow","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 09:51:08: Disposing session manager
Info 09:51:08: SessionManager - dispose contents manager
Info 09:51:08: ShutdownSessionAndConnection - dispose session manager
Info 09:51:08: Finished disposing jupyter session manager



Info 09:51:52: Execute Cells request 1
Info 09:51:52: Execute Cell 1 ~/Documents/Code/processor/Classification copy.ipynb
Info 09:51:52: Starting Notebook in kernel.ts id = http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
Info 09:51:52: Starting a new session for kernel id = http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher, name = python3
http://192.168.1.180:8888/: Kernel started: f21a39fc-3615-4760-b661-1237b0a842d1
Info 09:51:52: Waiting for idle on (kernel): f21a39fc-3615-4760-b661-1237b0a842d1 -> unknown
Info 09:51:53: Finished waiting for idle on (kernel): f21a39fc-3615-4760-b661-1237b0a842d1 -> idle
Info 09:51:53: Started session for kernel http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
Info 09:51:53: Waiting for idle (session) kernel http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
Info 09:51:53: Waiting for idle on (kernel): f21a39fc-3615-4760-b661-1237b0a842d1 -> idle
Info 09:51:53: Finished waiting for idle on (kernel): f21a39fc-3615-4760-b661-1237b0a842d1 -> idle
Info 09:51:53: Finished connecting kernel http://192.168.1.180:8888/..python3./usr/bin/python3..-m#ipykernel_launcher
http://192.168.1.180:8888/: Creating new notebook 
Info 09:51:53: Updating preferred kernel for remote notebook f21a39fc-3615-4760-b661-1237b0a842d1
Info 09:51:53: Storing Preferred remote kernel for ~/Documents/Code/processor/Classification copy.ipynb is f21a39fc-3615-4760-b661-1237b0a842d1

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Remote

@jcn2185 jcn2185 added bug Issue identified by VS Code Team member as probable bug needs-triage labels Feb 13, 2022
@DonJayamanne DonJayamanne added notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) remote-connection-failure labels Feb 13, 2022
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Feb 13, 2022

Thanks for filing this issue.

  • This could happen if the remote kernel is already busy running something.
    Are you able to confirm the kernel is not busy, i.e. can you connect to the same kernel from classic Jupyter notebook or Jupyter Lab.

Also are you trying to connect to an existing kernel with active connections or are you starting a whole new session?
FYI: If its We're looking into being able to connect to kernels that are still busy running (executing code).

  • Please could you provide a screenshot of the selected kernel form the list of kernels

The message with zmq can be ignored.

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster and removed needs-triage labels Feb 14, 2022
@panxnan
Copy link

panxnan commented Feb 15, 2022

I happen to have the same issue on Windows. I cannot connect to the kernel after updating the vscode yesterday. And vscode keeps showing "Connecting to kernel: Python ...: waiting for Jupyter Session to be idle."

FYI, I can access the same kernel thru the Jupyther hub.

image

@DonJayamanne

This comment was marked as outdated.

@JorisDeRidder
Copy link

I can report the same issue on OSX.

@DonJayamanne DonJayamanne added important Issue identified as high-priority notebook-regression labels Feb 15, 2022
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Feb 15, 2022

@panxnan @jcn2185 @JorisDeRidder
I'm sorry about this issue and trying to get to the bottom of this.
I've published a new version of the extension with even more logging. The version you need is 2022.2.1010472158

  • Add the following settings:
"jupyter.logging.level": "verbose",
"jupyter.enablePythonKernelLogging": true
  • Reload VS Code
  • Reload VS Code
  • Replicate the issue
  • Copy the output from the Jupyter output panel & paste all of the contents here (into the issue)

@putrasto
Copy link

I was experiencing same issue "[Remote Server: Waiting for Jupiter Session to be Idle]"
I fixed it by downgrading jedi from 0.18.0 to 0.17.2 following this stack overflow
https://stackoverflow.com/questions/65843310/completion-in-ipython-jupyter-does-now-work-unexpected-keyword-argument-colu

@JorisDeRidder
Copy link

The Jupyter output panel indeed lists an error caused by Jedi (see below). Although it will affect the autocompletion, I'm not sure it also causes the eternal "Waiting for Jupyter session to be idle". The output log explicitly mentions that it set the status to idle.

image

In any case, I don't see how to downgrade jedi without rendering the entire conda environment inconsistent.

Info 02:29:41: Raw session started and connected
Started kernel base (Python 3.8.5)
Info 02:29:41: Finished connecting b49994a0-8c6e-4094-97a7-d0c46607a7af
Verbose 02:29:41: Started running kernel initialization
Verbose 02:29:41: Requesting completions, Class name = M (started execution), 
Verbose 02:29:41: Waiting for completions request to complete
Verbose 02:29:41: IKernel Status change to busy
Verbose 02:29:42: KernelProcess error: [IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 268, in dispatch_shell
    yield gen.maybe_future(handler(stream, idents, msg))
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/tornado/gen.py", line 735, in run
    value = future.result()
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/tornado/gen.py", line 209, in wrapper
    yielded = next(result)
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/ipykernel/kernelbase.py", line 583, in complete_request
    matches = yield gen.maybe_future(self.do_complete(code, cursor_pos))
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 360, in do_complete
    return self._experimental_do_complete(code, cursor_pos)
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 385, in _experimental_do_complete
    completions = list(_rectify_completions(code, raw_completions))
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/IPython/core/completer.py", line 484, in rectify_completions
    completions = list(completions)
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/IPython/core/completer.py", line 1818, in completions
    for c in self._completions(text, offset, _timeout=self.jedi_compute_type_timeout/1000):
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/IPython/core/completer.py", line 1861, in _completions
    matched_text, matches, matches_origin, jedi_matches = self._complete(
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/IPython/core/completer.py", line 2029, in _complete
    completions = self._jedi_matches(
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/IPython/core/completer.py", line 1373, in _jedi_matches
    interpreter = jedi.Interpreter(
  File "/Users/xxxx/anaconda3/lib/python3.8/site-packages/jedi/api/__init__.py", line 725, in __init__
    super().__init__(code, environment=environment,
TypeError: __init__() got an unexpected keyword argument 'column'

Verbose 02:29:42: IKernel Status change to idle
Verbose 02:29:42: VSCodeNotebookController::handleExecution, Class name = C (started execution)
Info 02:29:42: Execute Cells request 2
Info 02:29:42: Execute Cell 2 ~/mynotebook.ipynb
Verbose 02:29:42: Getting env activation commands, Class name = r (started execution), Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python are cached.
Verbose 02:29:42: Getting env activation commands, Class name = r, completed in 0ms, has a truthy return value, Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activated env variables from Python, Class name = r, completed in 2844ms, has a truthy return value, Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Got env vars with python ~/anaconda3/bin/python in 2844ms
Verbose 02:29:42: Getting env activation commands, Class name = r (started execution), Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python are cached.
Verbose 02:29:42: Getting env activation commands, Class name = r, completed in 1ms, has a truthy return value, Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activated env variables from Python, Class name = r, completed in 2851ms, has a truthy return value, Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Got env vars with python ~/anaconda3/bin/python in 2853ms
Verbose 02:29:42: Getting env activation commands, Class name = r (started execution), Arg 1: undefined, Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python are cached.
Verbose 02:29:42: Getting env activation commands, Class name = r, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activated env variables from Python, Class name = r, completed in 2918ms, has a truthy return value, Arg 1: undefined, Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Got env vars with python ~/anaconda3/bin/python in 2918ms
Verbose 02:29:42: Getting env activation commands, Class name = r (started execution), Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python
Verbose 02:29:42: Getting activation commands for /Users/xxxx/anaconda3/bin/python are cached.
Verbose 02:29:42: Getting env activation commands, Class name = r, completed in 0ms, has a truthy return value, Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Getting activated env variables from Python, Class name = r, completed in 2869ms, has a truthy return value, Arg 1: "~/mynotebook.ipynb", Arg 2: "~/anaconda3/bin/python"
Verbose 02:29:42: Got env vars with python ~/anaconda3/bin/python in 2870ms

@DonJayamanne
Copy link
Contributor

@JorisDeRidder
I've got a fix for this #9043, hopefully that will resolve this issue
I'll push a pre-release ASAP with this fix. Will let you know when thats ready

@DonJayamanne
Copy link
Contributor

@JorisDeRidder please install the latest pre-release version of the jupyter extension and it should work.
when you go into the extension panel ensure you install pre-release version.

@JorisDeRidder
Copy link

Problem solved! Wonderful, many thanks!

@DonJayamanne DonJayamanne changed the title Remote Server: Waiting for Jupiter Session to be Idle Unable to start kernel - Waiting for Jupiter Session to be Idle Feb 16, 2022
@DonJayamanne DonJayamanne changed the title Unable to start kernel - Waiting for Jupiter Session to be Idle Unable to start kernel - Waiting for Jupiter Session to be Idle (Kernel fails to start as completions request crahes without sending a response back) Feb 21, 2022
@samsvp
Copy link

samsvp commented Mar 4, 2022

I'm having the same error on Ubuntu 20.04. I've set the jupyter extension version to pre-release but the error persists and now code keeps telling me that I need to install ipykernel(it's already installed, manually through pip and selecting the code prompt).

Code version is 1.65.0, installed through snap and python version is 3.8.10 64 bit.
ipykernel version 6.9.1

Full log

Visual Studio Code (1.65.0, undefined, desktop)
Jupyter Extension Version: 2022.3.1000642447.
Python Extension Version: 2022.3.10631003.
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Error 13:12:07: 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/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/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/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/node_modules/node-gyp-build/index.js:1:605)
	at Object.<anonymous> (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/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/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/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/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:3877048)
	at __webpack_require__ (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:4544716)
	at u.zmqSupported (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:971603)
	at u.isSupportedForLocalLaunch (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:971346)
	at u.get isSupported [as isSupported] (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:971256)
	at t.registerTypes (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:982489)
	at /home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:1068952
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async /home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:4546291
	at async e.activate (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:4545968)
	at async Promise.all (index 1)]
Info 13:12:07: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 13:12:07: Getting activation commands for /bin/python are not cached. May take a while.
Info 13:12:07: Getting activation commands for /bin/python3 are not cached. May take a while.
Info 13:12:07: Process Execution: > /bin/python -m pip list
> /bin/python -m pip list
Info 13:12:07: Process Execution: > /bin/python -c "import pip"
> /bin/python -c "import pip"
Info 13:12:08: Process Execution: > /bin/python3 -c "import jupyter"
> /bin/python3 -c "import jupyter"
Info 13:12:08: Process Execution: > /bin/python3 -c "import notebook"
> /bin/python3 -c "import notebook"
Info 13:12:08: Process Execution: > /bin/python3 -m jupyter kernelspec --version
> /bin/python3 -m jupyter kernelspec --version
Info 13:12:15: Creating controller for interactive with interpreter /bin/python3
Info 13:12:15: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Interactive)
Info 13:12:15: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 13:12:15: Creating controller for interactive with interpreter /bin/python3
Info 13:12:15: TargetController found ID: .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Interactive) for document vscode-interactive:Interactive-1.interactive
Info 13:12:15: Setting controller affinity for vscode-interactive:Interactive-1.interactive .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Interactive)
Info 13:12:15: Process Execution: > /bin/python3 -m pip list
> /bin/python3 -m pip list
Info 13:12:15: Starting Notebook in kernel.ts id = .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher
Info 13:12:15: Checking for server existence.
Info 13:12:15: Checking for server usability.
Info 13:12:15: Starting notebook server.
Info 13:12:15: Connecting to server
Info 13:12:15: Launching server
Info 13:12:15: Starting Notebook
Info 13:12:16: Generating custom default config at /tmp/d5fc0c71-4f7a-462a-ab0d-1cce46cb11bb/jupyter_notebook_config.py
Info 13:12:16: Starting Jupyter Notebook
Starting Jupyter from /bin/python3 with command line --no-browser --notebook-dir="/home/kubo/git/TCC/src/oil_detection" --config=/tmp/d5fc0c71-4f7a-462a-ab0d-1cce46cb11bb/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 13:12:16: Creating daemon pool for /bin/python3 with env variables count 110
Info 13:12:16: Process Execution: > /bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 13944
> /bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 13944
Info 13:12:16: Process Execution: > /bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 13944
> /bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 13944
Info 13:12:16: Process Execution: > /bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 13944
> /bin/python3 -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 13944
Info 13:12:16: Registering dummy command feature
Info 13:12:16: Process Execution: > /bin/python3 (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/kubo/git/TCC/src/oil_detection" --config=/tmp/d5fc0c71-4f7a-462a-ab0d-1cce46cb11bb/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> /bin/python3 (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/kubo/git/TCC/src/oil_detection" --config=/tmp/d5fc0c71-4f7a-462a-ab0d-1cce46cb11bb/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 13:12:16: Waiting for Jupyter Notebook
/home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(

[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection

[I 13:12:16.840 NotebookApp] Jupyter Notebook 6.4.8 is running at:
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection
[I 13:12:16.840 NotebookApp] Jupyter Notebook 6.4.8 is running at:

[I 13:12:16.840 NotebookApp] http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection
[I 13:12:16.840 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 13:12:16.840 NotebookApp] http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b

Info 13:12:16: Process Execution: > /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 13:12:16.841 NotebookApp]  or http://127.0.0.1:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection
[I 13:12:16.840 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 13:12:16.840 NotebookApp] http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
[I 13:12:16.841 NotebookApp]  or http://127.0.0.1:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b

Info 13:12:16: Process Execution: > /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 13:12:16.841 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection
[I 13:12:16.840 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 13:12:16.840 NotebookApp] http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
[I 13:12:16.841 NotebookApp]  or http://127.0.0.1:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
[I 13:12:16.841 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[C 13:12:16.848 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/kubo/.local/share/jupyter/runtime/nbserver-14111-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
     or http://127.0.0.1:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
Info 13:12:16: /home/kubo/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/home/kubo/git/TCC/src/oil_detection' instead of '"/home/kubo/git/TCC/src/oil_detection"' if you require traitlets >=5.
  warn(
[I 13:12:16.840 NotebookApp] Serving notebooks from local directory: /home/kubo/git/TCC/src/oil_detection
[I 13:12:16.840 NotebookApp] Jupyter Notebook 6.4.8 is running at:
[I 13:12:16.840 NotebookApp] http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
[I 13:12:16.841 NotebookApp]  or http://127.0.0.1:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
[I 13:12:16.841 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 13:12:16.848 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/kubo/.local/share/jupyter/runtime/nbserver-14111-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b
     or http://127.0.0.1:8888/?token=8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b

Info 13:12:17: Connecting to process server
Info 13:12:17: Connecting server kernel http://localhost:8888/
Info 13:12:17: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"8bdad84f5734ca4325a72f253e25e792bc555a75b4372e7b","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 13:12:17: Connection complete server
Info 13:12:17: Server started.
Info 13:12:17: Process Execution: > /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 13:12:17: Process Execution: > /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> /bin/python3 (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 13:12:17.362 NotebookApp] Creating new notebook in 
Info 13:12:17: installMissingDependencies /bin/python3
Info 13:12:17: Process Execution: > /bin/python3 -c "import ipykernel"
> /bin/python3 -c "import ipykernel"
Info 13:12:17: Spec argv[0] updated from '/bin/python3' to '/bin/python3'
Info 13:12:17: Starting a new session for kernel id = .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher, name = python3810jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1
[I 13:12:17.823 NotebookApp] Kernel started: 231aa6f4-d8c3-4b77-acc6-142c86c76980, name: python3810jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1
Info 13:12:17: Waiting for idle on (kernel): 231aa6f4-d8c3-4b77-acc6-142c86c76980 -> unknown
[W 13:12:17.843 NotebookApp] delete /haralick.py-jvsc-103c6927-01fe-4ab5-b2ec-eb7f369deeae.ipynb
[I 13:12:20.815 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
[I 13:12:23.839 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
[I 13:12:26.863 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
[I 13:12:29.887 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
[I 13:12:32.907 NotebookApp] KernelRestarter: restarting kernel (5/5), new random ports
[W 13:12:35.928 NotebookApp] KernelRestarter: restart failed
[W 13:12:35.928 NotebookApp] Kernel 231aa6f4-d8c3-4b77-acc6-142c86c76980 died, removing from map.
Error 13:13:17: Failed to change kernel [TypeError: Cannot read property 'statusChanged' of null
	at C.waitForIdleOnSession (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:270786)
	at async C.createNewKernelSession (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:607995)
	at async C.connect (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:606831)
	at async m.startNew (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:615184)
	at async a (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:739990)
	at async w.createNotebookInstance (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:740138)
	at async w.createNotebook (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:741081)]
Error 13:13:17: failed to create INotebook in kernel, UI Disabled = false [c [Error]: Kernel Python 3.8.10 64-bit is not usable. Check the Jupyter output tab for more information.
	at C.createNewKernelSession (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:608198)
	at async C.connect (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:606831)
	at async m.startNew (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:615184)
	at async a (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:739990)
	at async w.createNotebookInstance (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:740138)
	at async w.createNotebook (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:741081)] {
  category: 'invalidkernel',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: undefined,
      interpreterPath: '/bin/python3',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: 'Python 3.8.10 64-bit',
      metadata: [Object],
      env: {},
      interrupt_mode: undefined
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      envPath: '',
      path: '/bin/python3',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: 'Python 3.8.10 64-bit',
      detailedDisplayName: 'Python 3.8.10 64-bit'
    },
    id: '.jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher'
  }
}
Warn 13:13:17: Kernel Error [c [Error]: Kernel Python 3.8.10 64-bit is not usable. Check the Jupyter output tab for more information.
	at C.createNewKernelSession (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:608198)
	at async C.connect (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:606831)
	at async m.startNew (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:615184)
	at async a (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:739990)
	at async w.createNotebookInstance (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:740138)
	at async w.createNotebook (/home/kubo/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000642447/out/client/extension.js:2:741081)] {
  category: 'invalidkernel',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: undefined,
      interpreterPath: '/bin/python3',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: 'Python 3.8.10 64-bit',
      metadata: [Object],
      env: {},
      interrupt_mode: undefined
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'Global',
      envName: '',
      envPath: '',
      path: '/bin/python3',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: 'Python 3.8.10 64-bit',
      detailedDisplayName: 'Python 3.8.10 64-bit'
    },
    id: '.jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher'
  }
}
[W 13:13:17.853 NotebookApp] Timeout waiting for kernel_info reply from 231aa6f4-d8c3-4b77-acc6-142c86c76980
[E 13:13:17.855 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: 231aa6f4-d8c3-4b77-acc6-142c86c76980)
Info 13:13:17: Process Execution: > /bin/python3 -c "import ipykernel"
> /bin/python3 -c "import ipykernel"
Info 13:13:18: installMissingDependencies /bin/python3
Info 13:13:18: Process Execution: > /bin/python3 -c "import ipykernel"
> /bin/python3 -c "import ipykernel"
Info 13:13:18: Process Execution: > /bin/python3 -c "import pip"
> /bin/python3 -c "import pip"
Info 13:13:21: Got result from python installer for ipykernel, result = 2

@TomOerlemans
Copy link

TomOerlemans commented Mar 19, 2022

Alright so this one surprised me a little..

I was using Jupyter code cells. And I ran also ran into the "Waiting for Jupiter Session to be Idle" issue. Even a reboot of my machine did not help.

However, the error disappeared when I renamed my file, from "inspect.py" to "tmp.py".

@texttheater
Copy link

texttheater commented Mar 22, 2022

Same issue here on Ubuntu 20.04.

Visual Studio Code (1.65.2, undefined, desktop)
Jupyter Extension Version: 2022.3.1000762011.
Python Extension Version: 2022.2.1924087327.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Error 19:16:48: 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/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/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/91/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32148)
	at Function._._load (/snap/code/91/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28737)
	at Function.g._load (/snap/code/91/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/91/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at load (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/node_modules/node-gyp-build/index.js:1:605)
	at Object.<anonymous> (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/node_modules/zeromq/lib/native.js:1:198)
	at Module.u._compile (/snap/code/91/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/91/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32148)
	at Function._._load (/snap/code/91/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28737)
	at Function.g._load (/snap/code/91/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/91/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.<anonymous> (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/node_modules/zeromq/lib/index.js:1:144)
	at Module.u._compile (/snap/code/91/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/91/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32148)
	at Function._._load (/snap/code/91/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28737)
	at Function.g._load (/snap/code/91/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/91/usr/share/code/resources/app/out/vs/loader.js:4:699)
	at Object.92747 (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:3938458)
	at __webpack_require__ (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:4606171)
	at u.zmqSupported (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:1026035)
	at u.isSupportedForLocalLaunch (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:1025778)
	at u.get isSupported [as isSupported] (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:1025688)
	at t.registerTypes (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:334624)
	at /home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:419953
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async /home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:4607746
	at async e.activate (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:4607423)]
Info 19:16:48: Old kernelspecs (created by Jupyter extension) stored in directory /home/ke/.local/share/jupyter/kernels/__old_vscode_kernelspecs
Info 19:16:48: Preferred kernel connection found in cache .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher
Info 19:16:48: PreferredConnection: .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher found for NotebookDocument: ~/git/rrgproj2/plots.ipynb
Info 19:16:48: Early registration of controller for Kernel connection .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher
Info 19:16:48: TargetController found ID: .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher for document ~/git/rrgproj2/plots.ipynb
Info 19:16:48: Setting controller affinity for ~/git/rrgproj2/plots.ipynb .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher
Info 19:16:48: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 19:16:48: Interrupt requested & no kernel.
Info 19:16:48: Setting setActiveController for ~/git/rrgproj2/plots.ipynb
Info 19:16:48: KernelProvider switched kernel to id = .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher
Info 19:16:48: Starting Notebook in kernel.ts id = .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher
Info 19:16:48: Checking for server existence.
Info 19:16:48: Checking for server usability.
Info 19:16:48: Creating controller for jupyter-notebook with interpreter ~/.pyenv/versions/3.8.6/bin/python
Info 19:16:48: Getting activation commands for /home/ke/.pyenv/versions/3.8.6/bin/python are not cached. May take a while.
Info 19:16:48: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m pip list
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m pip list
Info 19:16:49: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import jupyter"
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import jupyter"
Info 19:16:49: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import notebook"
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import notebook"
Info 19:16:49: Process Execution: > ~/.pyenv/versions/3.8.6/bin/python -m pip list
> ~/.pyenv/versions/3.8.6/bin/python -m pip list
Info 19:16:49: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m jupyter kernelspec --version
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m jupyter kernelspec --version
Info 19:16:49: Registering dummy command feature
Info 19:16:49: Old KernelSpec '/home/ke/.local/share/jupyter/kernels/python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca/kernel.json' deleted and backup stored in /home/ke/.local/share/jupyter/kernels/__old_vscode_kernelspecs
Info 19:16:49: Registering dummy command feature
Info 19:16:49: Starting notebook server.
Info 19:16:49: Connecting to server
Info 19:16:49: Launching server
Info 19:16:49: Starting Notebook
Info 19:16:49: Generating custom default config at /tmp/f06bb650-283d-40f2-a747-ba56a4e836c0/jupyter_notebook_config.py
Info 19:16:49: Starting Jupyter Notebook
Starting Jupyter from ~/git/rrgproj2/.direnv/python-3.8.10/bin/python with command line --no-browser --notebook-dir="/home/ke/git/rrgproj2" --KernelManager.autorestart=False --config=/tmp/f06bb650-283d-40f2-a747-ba56a4e836c0/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 19:16:49: Creating daemon pool for ~/git/rrgproj2/.direnv/python-3.8.10/bin/python with env variables count 95
Info 19:16:49: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 7658
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 7658
Info 19:16:49: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 7658
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 7658
Info 19:16:49: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 7658
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 7658
Info 19:16:50: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/ke/git/rrgproj2" --KernelManager.autorestart=False --config=/tmp/f06bb650-283d-40f2-a747-ba56a4e836c0/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/home/ke/git/rrgproj2" --KernelManager.autorestart=False --config=/tmp/f06bb650-283d-40f2-a747-ba56a4e836c0/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 19:16:50: Waiting for Jupyter Notebook
/home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
Info 19:16:50: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(

[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2
Info 19:16:51: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2

[I 19:16:51.015 NotebookApp] Jupyter Notebook 6.4.0 is running at:
Info 19:16:51: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2
[I 19:16:51.015 NotebookApp] Jupyter Notebook 6.4.0 is running at:

[I 19:16:51.016 NotebookApp] http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
Info 19:16:51: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2
[I 19:16:51.015 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 19:16:51.016 NotebookApp] http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36

Info 19:16:51: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 19:16:51.016 NotebookApp]  or http://127.0.0.1:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
Info 19:16:51: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2
[I 19:16:51.015 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 19:16:51.016 NotebookApp] http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
[I 19:16:51.016 NotebookApp]  or http://127.0.0.1:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36

Info 19:16:51: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 19:16:51.016 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 19:16:51: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2
[I 19:16:51.015 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 19:16:51.016 NotebookApp] http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
[I 19:16:51.016 NotebookApp]  or http://127.0.0.1:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
[I 19:16:51.016 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

[C 19:16:51.021 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/ke/.local/share/jupyter/runtime/nbserver-7790-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
     or http://127.0.0.1:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
Info 19:16:51: /home/ke/.local/lib/python3.8/site-packages/traitlets/traitlets.py:2196: FutureWarning: Supporting extra quotes around Unicode is deprecated in traitlets 5.0. Use '/home/ke/git/rrgproj2' instead of '"/home/ke/git/rrgproj2"' – or use CUnicode.
  warn(
[I 19:16:51.015 NotebookApp] Serving notebooks from local directory: /home/ke/git/rrgproj2
[I 19:16:51.015 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 19:16:51.016 NotebookApp] http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
[I 19:16:51.016 NotebookApp]  or http://127.0.0.1:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
[I 19:16:51.016 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:16:51.021 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///home/ke/.local/share/jupyter/runtime/nbserver-7790-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36
     or http://127.0.0.1:8888/?token=232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36

Info 19:16:51: Connecting to process server
Info 19:16:51: Connecting server kernel http://localhost:8888/
Info 19:16:51: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"232ba6a778b1bf0b18f2318ce61d9a153554a7d3142e1d36","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 19:16:51: Connection complete server
Info 19:16:51: Server started.
[I 19:16:51.422 NotebookApp] Creating new notebook in 
Info 19:16:51: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:16:51: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/pythonFiles/vscode_datascience_helpers/getServerInfo.py
Info 19:16:51: installMissingDependencies ~/git/rrgproj2/.direnv/python-3.8.10/bin/python
Info 19:16:51: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import ipykernel"
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import ipykernel"
Info 19:16:52: Spec argv[0] updated from '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python' to '~/git/rrgproj2/.direnv/python-3.8.10/bin/python'
Info 19:16:52: Adding env Variable PYTHONNOUSERSITE to ~/git/rrgproj2/.direnv/python-3.8.10/bin/python
Info 19:16:52: Starting a new session for kernel id = .jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher, name = python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca
[I 19:16:52.194 NotebookApp] Kernel started: a1a890aa-611e-4a46-986a-41f23a56efbb, name: python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca
Info 19:16:52: Waiting for idle on (kernel): a1a890aa-611e-4a46-986a-41f23a56efbb -> unknown
[W 19:16:52.221 NotebookApp] delete /plots-jvsc-7eb049a9-da08-4449-88cd-70507ab728d0.ipynb
Info 19:16:59: Execute Cells request 0
Info 19:16:59: Execute Cell 0 ~/git/rrgproj2/plots.ipynb
Info 19:17:52: Finished waiting for idle on (kernel): a1a890aa-611e-4a46-986a-41f23a56efbb -> unknown
Error 19:17:52: Shutting down after failing to wait for idle on (kernel): a1a890aa-611e-4a46-986a-41f23a56efbb -> unknown
Error 19:17:52: Failed to change kernel, re-throwing [a [Error]: The Jupyter notebook server failed to launch in time
	at S.waitForIdleOnSession (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:681752)
	at async S.createNewKernelSession (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:908159)
	at async S.connect (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:906995)
	at async m.startNew (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:915347)
	at async s (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:878813)
	at async w.createNotebookInstance (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:878961)
	at async w.createNotebook (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:879904)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/temp/jupyter/kernels/python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca/kernel.json',
      interpreterPath: '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: "Python 3.8.10 ('python-3.8.10': virtualenv)",
      metadata: [Object],
      env: {}
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'VirtualEnv',
      envName: 'python-3.8.10',
      envPath: '/home/ke/git/rrgproj2/.direnv/python-3.8.10',
      path: '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: "Python 3.8.10 ('python-3.8.10': virtualenv)",
      detailedDisplayName: "Python 3.8.10 ('python-3.8.10': virtualenv)"
    },
    id: '.jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher'
  }
}
Error 19:17:52: failed to create INotebook in kernel, UI Disabled = false [a [Error]: The Jupyter notebook server failed to launch in time
	at S.waitForIdleOnSession (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:681752)
	at async S.createNewKernelSession (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:908159)
	at async S.connect (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:906995)
	at async m.startNew (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:915347)
	at async s (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:878813)
	at async w.createNotebookInstance (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:878961)
	at async w.createNotebook (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:879904)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/temp/jupyter/kernels/python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca/kernel.json',
      interpreterPath: '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: "Python 3.8.10 ('python-3.8.10': virtualenv)",
      metadata: [Object],
      env: {}
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'VirtualEnv',
      envName: 'python-3.8.10',
      envPath: '/home/ke/git/rrgproj2/.direnv/python-3.8.10',
      path: '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: "Python 3.8.10 ('python-3.8.10': virtualenv)",
      detailedDisplayName: "Python 3.8.10 ('python-3.8.10': virtualenv)"
    },
    id: '.jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher'
  }
}
Warn 19:17:52: Kernel Error [a [Error]: The Jupyter notebook server failed to launch in time
	at S.waitForIdleOnSession (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:681752)
	at async S.createNewKernelSession (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:908159)
	at async S.connect (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:906995)
	at async m.startNew (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:915347)
	at async s (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:878813)
	at async w.createNotebookInstance (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:878961)
	at async w.createNotebook (/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/out/client/extension.js:2:879904)] {
  category: 'timeout',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/ke/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000762011/temp/jupyter/kernels/python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca/kernel.json',
      interpreterPath: '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3810jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: "Python 3.8.10 ('python-3.8.10': virtualenv)",
      metadata: [Object],
      env: {}
    },
    interpreter: {
      sysPrefix: '/usr',
      envType: 'VirtualEnv',
      envName: 'python-3.8.10',
      envPath: '/home/ke/git/rrgproj2/.direnv/python-3.8.10',
      path: '/home/ke/git/rrgproj2/.direnv/python-3.8.10/bin/python',
      architecture: 3,
      sysVersion: '3.8.10 (default, Nov 26 2021, 20:14:08) \n[GCC 9.3.0]',
      version: [Object],
      displayName: "Python 3.8.10 ('python-3.8.10': virtualenv)",
      detailedDisplayName: "Python 3.8.10 ('python-3.8.10': virtualenv)"
    },
    id: '.jvsc74a57bd0c9e91b9ce96685a34a75636a54295a7a79a3fff47041238081befe9b685c55ca./home/ke/git/rrgproj2/.direnv/python-3.8.10/python./home/ke/git/rrgproj2/.direnv/python-3.8.10/python.-m#ipykernel_launcher'
  }
}
[W 19:17:52.226 NotebookApp] Timeout waiting for kernel_info reply from a1a890aa-611e-4a46-986a-41f23a56efbb
[I 19:17:52.251 NotebookApp] Kernel shutdown: a1a890aa-611e-4a46-986a-41f23a56efbb
Info 19:17:52: Process Execution: > ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import ipykernel"
> ~/git/rrgproj2/.direnv/python-3.8.10/bin/python -c "import ipykernel"
Info 19:17:52: Dispose kernel file:///home/ke/git/rrgproj2/plots.ipynb
[W 19:17:52.740 NotebookApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x7f535112e160>
[W 19:17:52.740 NotebookApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x7f535112e160>

@andybrnr
Copy link

andybrnr commented Mar 23, 2022

Also just started running into this again on OS X in the last couple days... @DonJayamanne, would you like a new issue opened?

@guzmanvitar
Copy link

guzmanvitar commented Apr 12, 2022

Hi, same issue here with M1, changing to pre release version doesn't solve it

@DonJayamanne
Copy link
Contributor

Yes, please create a new issue.

@crystalchengyafeng
Copy link

Yes, please create a new issue.

is it fixed?

@DonJayamanne
Copy link
Contributor

DonJayamanne commented May 3, 2022

@crystalchengyafeng Please file an issue and ping me and i'll look into it. this issue has been fixed.
I'm going to lock this issue so we end up with new issues instead, else commenting on an old issue could get lost.

@microsoft microsoft locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

Successfully merging a pull request may close this issue.