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

Error: Timed out waiting to get a heartbeat from kernel process #7863

Closed
1 of 2 tasks
philipnye opened this issue Oct 7, 2021 · 2 comments
Closed
1 of 2 tasks

Error: Timed out waiting to get a heartbeat from kernel process #7863

philipnye opened this issue Oct 7, 2021 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@philipnye
Copy link

philipnye commented Oct 7, 2021

Applies To

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

What happened?

Steps taken:

  • Created a fresh virtual environment using venv
  • Installed three packages (flake8, ipykernel, pandas)
  • Tried to run my first cell - import pandas as pd
  • Received the error: 'Timed out waiting to get a heartbeat from kernel process. View Jupyter log for further details.'

My log can be found below.

The same steps worked fine yesterday.

I've tried to go through the various issues that mention Timed out waiting to get a heartbeat from kernel process and Failed to start the Daemon. Most date from 12 months ago and seem to refer to Python 3.7 or 3.8, but sorry if this is duplicating something and I've overlooked it.

VS Code Version

1.60.2

Jupyter Extension Version

v2021.8.2041215044

Jupyter logs

User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-10-07 19:44:55: ZMQ install verified.
Info 2021-10-07 19:44:55: Attempting to start a server because of preload conditions ...
Info 2021-10-07 19:45:08: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd0d2b69e0b0d41a9272b469c8b02aeb26d8b33b2f918308da8f531d00e408674ab.p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe.p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe.-m#ipykernel_launcher (Interactive)
Info 2021-10-07 19:45:08: Attempting to start a server because of preload conditions ...
Info 2021-10-07 19:45:08: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: Intiailize notebook communications for editor vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: Resolving notebook UI Comms (resolve) for vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: initialize CommonMessageCoordinator
Info 2021-10-07 19:45:08: IPyWidgetMessageDispatcher.initialize
Info 2021-10-07 19:45:08: Created and initailized CommonMessageCoordinator
Info 2021-10-07 19:45:08: Attach Coordinator for vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: Loading kernelspec from C:\Program Files\Python39\share\jupyter\kernels\python3\kernel.json for C:\Program Files\Python39\python.exe
Info 2021-10-07 19:45:08: Loading kernelspec from c:\Users\nyep\OneDrive - Institute for Government\Projects\Parliament API\scripts\env\share\jupyter\kernels\python3\kernel.json for c:\Users\nyep\OneDrive - Institute for Government\Projects\Parliament API\scripts\env\Scripts\python.exe
Info 2021-10-07 19:45:08: Loading kernelspec from p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\share\jupyter\kernels\python3\kernel.json for p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe
Info 2021-10-07 19:45:08: Starting Notebook in kernel.ts id = .jvsc74a57bd0d2b69e0b0d41a9272b469c8b02aeb26d8b33b2f918308da8f531d00e408674ab.p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe.p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe.-m#ipykernel_launcher
Info 2021-10-07 19:45:08: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: Computing working directory vscode-interactive:Interactive-1.interactive
Info 2021-10-07 19:45:08: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-10-07 19:45:08: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-10-07 19:45:08: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-10-07 19:45:08: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-10-07 19:45:08: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-10-07 19:45:08: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-10-07 19:45:09: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd0d2b69e0b0d41a9272b469c8b02aeb26d8b33b2f918308da8f531d00e408674ab","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","envType":"Venv","envName":"env","envPath":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","path":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","architecture":3,"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.7","major":3,"minor":9,"patch":7,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.7 64-bit ('env': venv)"}},"env":{}},"interpreter":{"sysPrefix":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","envType":"Venv","envName":"env","envPath":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","path":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","architecture":3,"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.7","major":3,"minor":9,"patch":7,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.7 64-bit ('env': venv)"},"id":".jvsc74a57bd0d2b69e0b0d41a9272b469c8b02aeb26d8b33b2f918308da8f531d00e408674ab.p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe.p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe.-m#ipykernel_launcher"}
Info 2021-10-07 19:45:09: Starting raw kernel Python 3.9.7 64-bit ('env': venv)
Info 2021-10-07 19:45:09: installMissingDependencies p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe
Info 2021-10-07 19:45:09: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-10-07 19:45:09: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-10-07 19:45:10: Process Execution: > p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -m pip list
> p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -m pip list
Info 2021-10-07 19:45:11: Process Execution: > p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -c "import ipykernel"
> p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -c "import ipykernel"
Info 2021-10-07 19:45:11: Creating daemon pool for C:\Program Files\Python39\python.exe with env variables count 0
Info 2021-10-07 19:45:11: Process Execution: > C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-10-07 19:45:11: Process Execution: > C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-10-07 19:45:11: Process Execution: > C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-10-07 19:45:11: Process Execution: > C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-10-07 19:45:11: Process Execution: > C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-10-07 19:45:11: Process Execution: > C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
> C:\Program Files\Python39\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v
Info 2021-10-07 19:45:55: Install Missing Dependencies, Class name = _, completed in 46958ms, has a falsy return value, Return Value: undefined
Info 2021-10-07 19:45:55: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-10-07 19:45:55: Launching kernel daemon for Python 3.9.7 64-bit ('env': venv) # p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe
Info 2021-10-07 19:45:55: No custom variables for Kernel as interpreter is not conda, but is Venv
Info 2021-10-07 19:45:57: Creating daemon process for p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe with env variables count 68
Info 2021-10-07 19:45:58: Process Execution: > p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-10-07 19:46:03: Failed to start the Daemon, StdErr:  
Error 2021-10-07 19:46:03: Failed to start the Daemon, ProcEndEx [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:37:205293)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-10-07 19:46:03: Failed  to start the Daemon, Ex [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:37:205293)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-10-07 19:46:03: Pinging Daemon Failed, Class name = d, completed in 5004ms, has a falsy return value, Arg 1: {}, Return Value: undefined [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:37:205293)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-10-07 19:46:03: Failed to create daemon, Class name = d, completed in 5638ms, has a falsy return value, , Return Value: undefined [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:37:205293)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-10-07 19:46:03: Failed to create the daemon service, defaulting to activated environment [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:37:205293)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-10-07 19:46:03: Process Execution: > p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"b1222161-5318-4412-99b3-9f1be9d63e2d" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\nyep\AppData\Local\Temp\tmp-20884rPFL6uDjZzCf.json
> p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\env\Scripts\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"b1222161-5318-4412-99b3-9f1be9d63e2d" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\nyep\AppData\Local\Temp\tmp-20884rPFL6uDjZzCf.json
Info 2021-10-07 19:46:03: Process Execution: cwd: p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data
cwd: p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data
Info 2021-10-07 19:46:03: Launching kernel daemon, Class name = f, completed in 7756ms, has a truthy return value, Arg 1: <Uri:p:\Research & Learning\Research\Data Science\Whitehall Monitor\Contracts_Data\contracts_data_import_wga.py>, Arg 2: "p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data", Arg 3: {"interpreterPath":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd0d2b69e0b0d41a9272b469c8b02aeb26d8b33b2f918308da8f531d00e408674ab","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"b1222161-5318-4412-99b3-9f1be9d63e2d\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-20884rPFL6uDjZzCf.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","envType":"Venv","envName":"env","envPath":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","path":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","architecture":3,"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.7","major":3,"minor":9,"patch":7,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.7 64-bit ('env': venv)"}},"env":{}}, Arg 4: {"sysPrefix":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","envType":"Venv","envName":"env","envPath":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env","path":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","architecture":3,"sysVersion":"3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]","version":{"raw":"3.9.7","major":3,"minor":9,"patch":7,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.9.7 64-bit ('env': venv)"}, Return Value: {"observableOutput":{"proc":{"_events":{},"_eventsCount":0,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","_handle":{"pid":6156},"spawnargs":["p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"b1222161-5318-4412-99b3-9f1be9d63e2d\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-20884rPFL6uDjZzCf.json"],"pid":6156,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":1,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":1,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false}}}
Info 2021-10-07 19:46:03: Launching kernel in kernelProcess.ts, Class name = y, completed in 7756ms, has a truthy return value, Arg 1: "p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data", Return Value: {"proc":{"_events":{},"_eventsCount":0,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","_handle":{"pid":6156},"spawnargs":["p:\\Research & Learning\\Research\\Data Science\\Whitehall Monitor\\Contracts_Data\\env\\Scripts\\python.exe","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"b1222161-5318-4412-99b3-9f1be9d63e2d\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-20884rPFL6uDjZzCf.json"],"pid":6156,"stdin":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":1,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdout":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stderr":{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},"stdio":[{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null,"readable":false},"_events":{},"_eventsCount":1,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null},{"connecting":false,"_hadError":false,"_parent":null,"_host":null,"_readableState":{"objectMode":false,"highWaterMark":16384,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":true,"sync":false,"needReadable":true,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":2,"_writableState":{"objectMode":false,"highWaterMark":16384,"finalCalled":false,"needDrain":false,"ending":false,"ended":false,"finished":false,"destroyed":false,"decodeStrings":false,"defaultEncoding":"utf8","length":0,"writing":false,"corked":0,"sync":true,"bufferProcessing":false,"writecb":null,"writelen":0,"afterWriteTickInfo":null,"buffered":[],"bufferedIndex":0,"allBuffers":true,"allNoop":true,"pendingcb":0,"prefinished":false,"errorEmitted":false,"emitClose":false,"autoDestroy":false,"errored":null,"closed":false,"writable":false,"closeEmitted":false},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","server":null,"_server":null}]},"out":{"_isScalar":false}}
Error 2021-10-07 19:47:03: Disposing kernel process due to an error [Error: timeout
	at Timeout.<anonymous> (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:798807)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-10-07 19:47:03: Dispose Kernel process
Error 2021-10-07 19:47:03: Timed out waiting to get a heartbeat from kernel process.
Error 2021-10-07 19:47:03: Raw session failed to start in given timeout
Info 2021-10-07 19:47:03: Shutdown session -- complete
Error 2021-10-07 19:47:03: failed to create INotebook in kernel, UI Disabled = false [_ [Error]: 
	at new o (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:16:41638)
	at new _ (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:90:319053)
	at w.connect (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:90:320909)
	at async P.createNotebookInstance (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:90:316972)

Error: Timed out waiting to get a heartbeat from kernel process. 
View Jupyter [log](command:jupyter.viewOutput) for further details.
	at y.launch (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:791074)] {
  category: 'timeout',
  originalException: [i [Error]: Timed out waiting to get a heartbeat from kernel process. 
  View Jupyter [log](command:jupyter.viewOutput) for further details.
  	at y.launch (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:791074)] {
    category: 'timeout'
  }
}
Error 2021-10-07 19:47:03: DataScience Error [i [Error]: Timed out waiting to get a heartbeat from kernel process. 
View Jupyter [log](command:jupyter.viewOutput) for further details.
	at y.launch (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:791074)] {
  category: 'timeout'
}
Error 2021-10-07 19:47:03: failed to start INotebook in kernel, UI Disabled = false [_ [Error]: 
	at new o (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:16:41638)
	at new _ (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:90:319053)
	at w.connect (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:90:320909)
	at async P.createNotebookInstance (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:90:316972)

Error: Timed out waiting to get a heartbeat from kernel process. 
View Jupyter [log](command:jupyter.viewOutput) for further details.
	at y.launch (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:791074)] {
  category: 'timeout',
  originalException: [i [Error]: Timed out waiting to get a heartbeat from kernel process. 
  View Jupyter [log](command:jupyter.viewOutput) for further details.
  	at y.launch (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:791074)] {
    category: 'timeout'
  }
}
Error 2021-10-07 19:47:03: DataScience Error [i [Error]: Timed out waiting to get a heartbeat from kernel process. 
View Jupyter [log](command:jupyter.viewOutput) for further details.
	at y.launch (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.8.2041215044\out\client\extension.js:52:791074)] {
  category: 'timeout'
}
Info 2021-10-07 19:47:03: KernelProcess Exit Exit - undefined 
Info 2021-10-07 20:56:05: Loading webview. View is notset
Info 2021-10-07 20:56:05: Loading web view...
Info 2021-10-07 20:56:05: Webview panel created.
Info 2021-10-07 20:56:06: Web view react rendered
Info 2021-10-07 20:56:06: Searching for token colors ...
Info 2021-10-07 20:56:06: Attempting search for colors ...
Info 2021-10-07 20:56:06: Loading colors from c:\Users\nyep\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\theme-monokai\themes\monokai-color-theme.json ...
Info 2021-10-07 20:56:06: Attempting search for colors ...
Info 2021-10-07 20:56:06: Loading base colors from c:\Users\nyep\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\theme-monokai\themes\monokai-color-theme.json ...
Info 2021-10-07 20:56:06: Using colors to generate CSS ...


### Coding Language and Runtime Version

python 3.9.7 64-bit

### Language Extension Version (if applicable)

_No response_

### Anaconda Version (if applicable)

N/a

### Running Jupyter locally or remotely?

Local
@philipnye philipnye added bug Issue identified by VS Code Team member as probable bug needs-triage labels Oct 7, 2021
@philipnye philipnye changed the title Error: Timed out waiting to get a heartbeat from kernel process (yep) Error: Timed out waiting to get a heartbeat from kernel process Oct 11, 2021
@DonJayamanne
Copy link
Contributor

@philipnye
Thanks for filing this issue, and sorry you are running into this.
Please could you try to install VS Code insiders and test this out. Its possible it was fixed along with the fix for #7334
The new release of Jupyter will be available tomorrow in VS Code insiders, please do try it out.

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) labels Oct 11, 2021
@philipnye
Copy link
Author

Thanks @DonJayamanne. Since posting this I've updated to VSCode 1.61.0 and, for now at least, am not getting the issue any more.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 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 info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

3 participants