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 #8182

Closed
philipnye opened this issue Nov 5, 2021 · 16 comments
Closed

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

philipnye opened this issue Nov 5, 2021 · 16 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@philipnye
Copy link

Issue Type: Bug

Steps taken:

  • Created a virtual environment using venv
  • Installed a number of packages
  • Tried to run my first cell - importing a number of packages
  • 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.

This is an issue that seems to happen intermittently. I previously raised it as #7863, but closed the issue as I thought it was fixed when I moved to VSCode 1.61.0. But I'm experiencing it again.

Following @DonJayamanne's advice, I've tried installing the insiders build and have received the same error there.

VSCode details

Extension version: 2021.10.1001414422
VS Code version: Code 1.62.0 (b3318bc0524af3d74034b8bb8a64df0ccf35549a, 2021-11-03T15:23:01.379Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

VSCode insiders build details

Version: 1.63.0-insider (user setup)
Commit: 552af97a0170b43c9323bec62211feb184da9749
Date: 2021-11-05T05:16:20.583Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19041

VSCode Jupyter log

Info 2021-11-05 17:04:45: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-11-05 17:04:45: ZMQ install verified.
Info 2021-11-05 17:04:46: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 2021-11-05 17:04:49: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-11-05 17:04:49: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-11-05 17:04:49: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-11-05 17:04:49: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-11-05 17:04:51: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-11-05 17:04:51: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-11-05 17:04:57: Creating controller for interactive with interpreter u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:04:57: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher (Interactive)
Info 2021-11-05 17:04:57: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:04:58: Starting Notebook in kernel.ts id = .jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher
Info 2021-11-05 17:04:58: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:04:58: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:04:58: Computing working directory vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:04:58: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":".jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.-m#ipykernel_launcher"}
Info 2021-11-05 17:04:58: Starting raw kernel Python 3.9.7 64-bit ('env': venv)
Info 2021-11-05 17:04:58: installMissingDependencies u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:04:59: Creating daemon pool for C:\Program Files\Python39\python.exe with env variables count 0
Info 2021-11-05 17:04:59: 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-11-05 17:04:59: 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-11-05 17:04:59: 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-11-05 17:04:59: 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-11-05 17:04:59: 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-11-05 17:04:59: 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
Error 2021-11-05 17:05:04: Failed to start the Daemon, StdErr:  
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Pinging Daemon Failed, Class name = d, completed in 5259ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Failed to create daemon, Class name = d, completed in 5287ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Failed to start the Daemon, StdErr:  
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Pinging Daemon Failed, Class name = d, completed in 5252ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Failed to create daemon, Class name = d, completed in 5273ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-05 17:05:04: Registering dummy command feature
Error 2021-11-05 17:05:04: Failed to start the Daemon, StdErr:  
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Pinging Daemon Failed, Class name = d, completed in 5227ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:05:04: Failed to create daemon, Class name = d, completed in 5284ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-05 17:05:04: Loading kernelspec from C:\Program Files\Python39\share\jupyter\kernels\python3\kernel.json for C:\Program Files\Python39\python.exe
Info 2021-11-05 17:05:04: Loading kernelspec from u:\DATA\Politics and Parliament\Ministers - Meetings\env\share\jupyter\kernels\python3\kernel.json for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:05:05: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-05 17:05:05: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-05 17:05:05: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-05 17:05:05: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-05 17:05:19: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
Info 2021-11-05 17:05:27: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
Info 2021-11-05 17:06:53: Install Missing Dependencies, Class name = S, completed in 115339ms, has a falsy return value, Return Value: undefined
Info 2021-11-05 17:06:53: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-11-05 17:06:53: Launching kernel daemon for Python 3.9.7 64-bit ('env': venv) # u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:06:53: No custom variables for Kernel as interpreter is not conda, but is Venv
Info 2021-11-05 17:07:00: Creating daemon process for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe with env variables count 67
Info 2021-11-05 17:07:00: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-11-05 17:07:05: Failed to start the Daemon, StdErr:  Traceback (most recent call last):
  File "c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\daemon\__main__.py", line 126, in main
    daemon_module = importlib.import_module(args.daemon_module)
  File "C:\Program Files\Python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\kernel_launcher_daemon.py", line 22, in <module>
    from vscode_datascience_helpers.kernel_launcher import launch_kernel
  File "c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\kernel_launcher.py", line 14, in <module>
    from ipython_genutils.encoding import getdefaultencoding
ModuleNotFoundError: No module named 'ipython_genutils'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\daemon\__main__.py", line 137, in <module>
    main()
  File "c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\daemon\__main__.py", line 133, in main
    raise Exception("Failed to start daemon")
Exception: Failed to start daemon

Error 2021-11-05 17:07:05: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:07:05: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:07:05: Pinging Daemon Failed, Class name = d, completed in 5003ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:07:05: Failed to create daemon, Class name = d, completed in 5427ms, 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:07:05: 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.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-05 17:07:06: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\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"4c406f5d-fc63-44e0-bd42-6d6ce06c41af" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\nyep\AppData\Local\Temp\tmp-33016OlufPQqF4b4y.json
> u:\DATA\Politics and Parliament\Ministers - Meetings\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"4c406f5d-fc63-44e0-bd42-6d6ce06c41af" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\nyep\AppData\Local\Temp\tmp-33016OlufPQqF4b4y.json
Info 2021-11-05 17:07:06: Process Execution: cwd: u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts
cwd: u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts
Info 2021-11-05 17:07:06: Launching kernel daemon, Class name = p, completed in 12718ms, has a truthy return value, Arg 1: <Uri:u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts\ministerialmeetings_readfiles.py>, Arg 2: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Arg 3: {"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"4c406f5d-fc63-44e0-bd42-6d6ce06c41af\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-33016OlufPQqF4b4y.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":27044},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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\"4c406f5d-fc63-44e0-bd42-6d6ce06c41af\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-33016OlufPQqF4b4y.json"],"pid":27044,"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-11-05 17:07:06: Launching kernel in kernelProcess.ts, Class name = y, completed in 12718ms, has a truthy return value, Arg 1: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Return Value: {"proc":{"_events":{},"_eventsCount":0,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":27044},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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\"4c406f5d-fc63-44e0-bd42-6d6ce06c41af\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-33016OlufPQqF4b4y.json"],"pid":27044,"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-11-05 17:08:06: Disposing kernel process due to an error [Error: timeout
	at Timeout.<anonymous> (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:805405)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-05 17:08:06: Dispose Kernel process
Error 2021-11-05 17:08:06: Timed out waiting to get a heartbeat from kernel process.
Error 2021-11-05 17:08:06: Raw session failed to start in given timeout
Info 2021-11-05 17:08:06: Shutdown session -- complete
Error 2021-11-05 17:08:06: failed to create INotebook in kernel, UI Disabled = undefined [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.10.1001414422\out\client\extension.js:66:797271)
	at runMicrotasks (<anonymous>)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-05 17:08:06: 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.10.1001414422\out\client\extension.js:66:797271)
	at runMicrotasks (<anonymous>)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-05 17:08:06: failed to start INotebook in kernel, UI Disabled = undefined [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.10.1001414422\out\client\extension.js:66:797271)
	at runMicrotasks (<anonymous>)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-05 17:08:06: 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.10.1001414422\out\client\extension.js:66:797271)
	at runMicrotasks (<anonymous>)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Info 2021-11-05 17:08:06: KernelProcess Exit Exit - undefined 

VSCode insiders build Jupyter log

Info 2021-11-05 17:04:31: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-11-05 17:04:31: ZMQ install verified.
Info 2021-11-05 17:04:32: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 2021-11-05 17:04:35: Process Execution: > C:\Program Files\Python310\python.exe -c "import jupyter"
> C:\Program Files\Python310\python.exe -c "import jupyter"
Info 2021-11-05 17:04:35: Process Execution: > C:\Program Files\Python310\python.exe -c "import jupyter"
> C:\Program Files\Python310\python.exe -c "import jupyter"
Info 2021-11-05 17:04:35: Process Execution: > C:\Program Files\Python310\python.exe -m pip list
> C:\Program Files\Python310\python.exe -m pip list
Info 2021-11-05 17:04:35: Process Execution: > C:\Program Files\Python310\python.exe -m pip list
> C:\Program Files\Python310\python.exe -m pip list
Info 2021-11-05 17:04:35: Process Execution: > C:\Program Files\Python310\python.exe -c "import notebook"
> C:\Program Files\Python310\python.exe -c "import notebook"
Info 2021-11-05 17:04:35: Process Execution: > C:\Program Files\Python310\python.exe -c "import notebook"
> C:\Program Files\Python310\python.exe -c "import notebook"
Info 2021-11-05 17:08:36: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
Info 2021-11-05 17:08:51: Creating controller for interactive with interpreter u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:08:51: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher (Interactive)
Info 2021-11-05 17:08:51: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:08:51: Starting Notebook in kernel.ts id = .jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher
Info 2021-11-05 17:08:51: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:08:51: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:08:51: Computing working directory vscode-interactive:Interactive-1.interactive
Info 2021-11-05 17:08:51: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":".jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.-m#ipykernel_launcher"}
Info 2021-11-05 17:08:51: Starting raw kernel Python 3.9.7 64-bit ('env': venv)
Info 2021-11-05 17:08:51: installMissingDependencies u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:08:52: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
Info 2021-11-05 17:08:52: Loading kernelspec from C:\Program Files\Python39\share\jupyter\kernels\python3\kernel.json for C:\Program Files\Python39\python.exe
Info 2021-11-05 17:08:52: Loading kernelspec from u:\DATA\Politics and Parliament\Ministers - Meetings\env\share\jupyter\kernels\python3\kernel.json for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:08:52: Registering dummy command feature
Info 2021-11-05 17:08:52: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-05 17:08:52: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-05 17:08:52: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-05 17:08:52: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-05 17:09:37: Install Missing Dependencies, Class name = S, completed in 45212ms, has a falsy return value, Return Value: undefined
Info 2021-11-05 17:09:37: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-11-05 17:09:37: Launching kernel daemon for Python 3.9.7 64-bit ('env': venv) # u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-05 17:09:37: No custom variables for Kernel as interpreter is not conda, but is Venv
Info 2021-11-05 17:09:44: Creating daemon process for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe with env variables count 68
Info 2021-11-05 17:09:44: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-11-05 17:09:49: Failed to start the Daemon, StdErr:  Traceback (most recent call last):
  File "c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\daemon\__main__.py", line 126, in main
    daemon_module = importlib.import_module(args.daemon_module)
  File "C:\Program Files\Python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\kernel_launcher_daemon.py", line 22, in <module>
    from vscode_datascience_helpers.kernel_launcher import launch_kernel
  File "c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\kernel_launcher.py", line 14, in <module>
    from ipython_genutils.encoding import getdefaultencoding
ModuleNotFoundError: No module named 'ipython_genutils'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\daemon\__main__.py", line 137, in <module>
    main()
  File "c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\pythonFiles\vscode_datascience_helpers\daemon\__main__.py", line 133, in main
    raise Exception("Failed to start daemon")
Exception: Failed to start daemon

Error 2021-11-05 17:09:49: Failed to start the Daemon, ProcEndEx [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:09:49: Failed  to start the Daemon, Ex [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:09:49: Pinging Daemon Failed, Class name = d, completed in 5014ms, has a falsy return value, Arg 1: {}, Return Value: undefined [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:09:49: Failed to create daemon, Class name = d, completed in 5273ms, has a falsy return value, , Return Value: undefined [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Error 2021-11-05 17:09:49: Failed to create the daemon service, defaulting to activated environment [Error: Timeout waiting for daemon to start
	at Timeout._onTimeout (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:51:203061)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-05 17:09:50: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\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"d4879557-23bf-445d-8923-dd45d53c02a9" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\nyep\AppData\Local\Temp\tmp-3268817XvCzo1B4gN.json
> u:\DATA\Politics and Parliament\Ministers - Meetings\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"d4879557-23bf-445d-8923-dd45d53c02a9" --shell=9002 --transport="tcp" --iopub=9004 --f=C:\Users\nyep\AppData\Local\Temp\tmp-3268817XvCzo1B4gN.json
Info 2021-11-05 17:09:50: Process Execution: cwd: u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts
cwd: u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts
Info 2021-11-05 17:09:50: Launching kernel daemon, Class name = p, completed in 13152ms, has a truthy return value, Arg 1: <Uri:u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts\ministerialmeetings_readfiles.py>, Arg 2: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Arg 3: {"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"d4879557-23bf-445d-8923-dd45d53c02a9\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-3268817XvCzo1B4gN.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":12860},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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\"d4879557-23bf-445d-8923-dd45d53c02a9\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-3268817XvCzo1B4gN.json"],"pid":12860,"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-11-05 17:09:50: Launching kernel in kernelProcess.ts, Class name = y, completed in 13152ms, has a truthy return value, Arg 1: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Return Value: {"proc":{"_events":{},"_eventsCount":0,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":12860},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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\"d4879557-23bf-445d-8923-dd45d53c02a9\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-3268817XvCzo1B4gN.json"],"pid":12860,"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-11-05 17:10:50: Disposing kernel process due to an error [Error: timeout
	at Timeout.<anonymous> (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:805405)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-05 17:10:50: Dispose Kernel process
Error 2021-11-05 17:10:50: Timed out waiting to get a heartbeat from kernel process.
Error 2021-11-05 17:10:50: Raw session failed to start in given timeout
Info 2021-11-05 17:10:50: Shutdown session -- complete
Error 2021-11-05 17:10:50: failed to create INotebook in kernel, UI Disabled = undefined [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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-05 17:10:50: 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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-05 17:10:50: failed to start INotebook in kernel, UI Disabled = undefined [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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-05 17:10:50: 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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Info 2021-11-05 17:10:50: KernelProcess Exit Exit - undefined
System Info
Item Value
CPUs Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (8 x 1896)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.82GB (0.52GB free)
Process Argv --crash-reporter-id f445ad82-2635-4c68-ab13-2d50037e9080
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythontb:30283811
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscorecescf:30384386
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
vsccppwt:30382697
bridge0708:30335490
pygetstartedt3:30385195
dockerwalkthru:30377721
bridge0723:30353136
pythonrunftest32:30373476
pythonf5test824:30373475
javagetstartedt:30391933
pythonvspyt187:30373474
vsqsis200:30386379
vsaa593cf:30376535
vssld246:30386377

@philipnye philipnye added the bug Issue identified by VS Code Team member as probable bug label Nov 5, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Nov 5, 2021

The root cause of the problem is you don't have ipython_genutils installed. How did you install ipykernel?

See this bug here:
#7787

@rchiodo rchiodo added info-needed Issue requires more information from poster and removed needs-triage labels Nov 5, 2021
@rchiodo rchiodo assigned rchiodo and unassigned claudiaregio Nov 5, 2021
@philipnye
Copy link
Author

Interesting, thanks. I installed ipykernel after a prompt from VSCode (this was a fresh virtual environment).

I haven't come across ipython_genutils before - I'll try installing that and will report back.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 5, 2021

@DonJayamanne it looks like we might be hitting the ipython_genutils issue with Venvs too :(

@DonJayamanne
Copy link
Contributor

@philipnye Please could you activate your virtual environment and type in python -m pip list and provide the output

@philipnye
Copy link
Author

Thanks @rchiodo @DonJayamanne. This is the output from running python -m pip list in my venv (before installing ipython_genutils:

backcall          0.2.0  
colorama          0.4.4  
debugpy           1.5.1  
decorator         5.1.0
entrypoints       0.3
flake8            4.0.1
greenlet          1.1.2
ipykernel         6.5.0
ipython           7.29.0
jedi              0.18.0
jupyter-client    7.0.6
jupyter-core      4.9.1
matplotlib-inline 0.1.3
mccabe            0.6.1
nest-asyncio      1.5.1
numpy             1.21.4
pandas            1.3.4
parso             0.8.2
pickleshare       0.7.5
pip               21.2.3
prompt-toolkit    3.0.22
pycodestyle       2.8.0
pyflakes          2.4.0
Pygments          2.10.0
python-dateutil   2.8.2
python-magic      0.4.24
pytz              2021.3
pywin32           302
pyzmq             22.3.0
setuptools        57.4.0
six               1.16.0
SQLAlchemy        1.4.26
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5

After installing ipython_genutils I still the original error: Timed out waiting to get a heartbeat from kernel process. But this is my new Jupyter log:

Info 2021-11-06 12:41:29: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-11-06 12:41:29: ZMQ install verified.
Info 2021-11-06 12:41:29: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 2021-11-06 12:41:31: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-11-06 12:41:31: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-11-06 12:41:31: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-11-06 12:41:31: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-11-06 12:41:32: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-11-06 12:41:32: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-11-06 12:41:37: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
Info 2021-11-06 12:41:43: Creating controller for interactive with interpreter u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-06 12:41:43: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher (Interactive)
Info 2021-11-06 12:41:43: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-11-06 12:41:43: Loading kernelspec from C:\Program Files\Python39\share\jupyter\kernels\python3\kernel.json for C:\Program Files\Python39\python.exe
Info 2021-11-06 12:41:43: Loading kernelspec from u:\DATA\Politics and Parliament\Ministers - Meetings\env\share\jupyter\kernels\python3\kernel.json for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-06 12:41:44: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-06 12:41:44: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-06 12:41:44: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-06 12:41:44: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-06 12:41:44: Starting Notebook in kernel.ts id = .jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher
Info 2021-11-06 12:41:44: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 2021-11-06 12:41:44: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 2021-11-06 12:41:44: Computing working directory vscode-interactive:Interactive-1.interactive
Info 2021-11-06 12:41:44: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":".jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.-m#ipykernel_launcher"}
Info 2021-11-06 12:41:44: Starting raw kernel Python 3.9.7 64-bit ('env': venv)
Info 2021-11-06 12:41:44: installMissingDependencies u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-06 12:41:44: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
Info 2021-11-06 12:41:44: Registering dummy command feature
Info 2021-11-06 12:41:44: Creating daemon pool for C:\Program Files\Python39\python.exe with env variables count 0
Info 2021-11-06 12:41:44: 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-11-06 12:41:44: 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-11-06 12:41:44: 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-11-06 12:41:44: 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-11-06 12:41:44: 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-11-06 12:41:44: 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-11-06 12:42:21: Install Missing Dependencies, Class name = S, completed in 37185ms, has a falsy return value, Return Value: undefined
Info 2021-11-06 12:42:21: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-11-06 12:42:21: Launching kernel daemon for Python 3.9.7 64-bit ('env': venv) # u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-06 12:42:21: No custom variables for Kernel as interpreter is not conda, but is Venv
Info 2021-11-06 12:42:25: Creating daemon process for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe with env variables count 69
Info 2021-11-06 12:42:25: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-11-06 12:42:27: Starting kernel from scratch with options {"cwd":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts"}
Info 2021-11-06 12:42:27: Python Daemon (pid: 10836): Execute rpc method exec_module in DS Daemon
Info 2021-11-06 12:42:27: Python Daemon (pid: 10836): Execute rpc method exec_module from u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-06 12:42:27: Python Daemon (pid: 10836): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"b3acc05d-301a-43ea-afcd-1342f1ec0c10"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-4108EiDrpzst57mN.json']
Info 2021-11-06 12:42:27: Python Daemon (pid: 10836): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"b3acc05d-301a-43ea-afcd-1342f1ec0c10"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-4108EiDrpzst57mN.json']
Info 2021-11-06 12:42:27: Python Daemon (pid: 10836): Exec in DS Kernel Launcher Daemon (observable) ['u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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"b3acc05d-301a-43ea-afcd-1342f1ec0c10"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-4108EiDrpzst57mN.json']
Info 2021-11-06 12:42:28: Python Daemon (pid: 10836): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-11-06 12:42:28: Python Daemon (pid: 10836): Kernel launched, with PID 21212
Warn 2021-11-06 12:42:28: Python Daemon (pid: 10836): Waiting for Kernel to die 21212
Info 2021-11-06 12:42:28: Launching kernel daemon, Class name = p, completed in 6839ms, has a truthy return value, Arg 1: <Uri:u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts\ministerialmeetings_readfiles.py>, Arg 2: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Arg 3: {"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"b3acc05d-301a-43ea-afcd-1342f1ec0c10\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-4108EiDrpzst57mN.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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: <Return value cannot be serialized for logging>
Info 2021-11-06 12:42:28: Launching kernel in kernelProcess.ts, Class name = y, completed in 6840ms, has a truthy return value, Arg 1: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":17560},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":17560,"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":3,"_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":false,"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":true,"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":{"close":[null,null]},"_eventsCount":4,"_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":true,"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":3,"_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":3,"_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":false,"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":true,"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":{"close":[null,null]},"_eventsCount":4,"_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":true,"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":3,"_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,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Error 2021-11-06 12:43:28: Disposing kernel process due to an error [Error: timeout
	at Timeout.<anonymous> (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:805405)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-06 12:43:28: Dispose Kernel process
Info 2021-11-06 12:43:28: kill daemon
Error 2021-11-06 12:43:28: Timed out waiting to get a heartbeat from kernel process.
Error 2021-11-06 12:43:28: Raw session failed to start in given timeout
Info 2021-11-06 12:43:28: Shutdown session -- complete
Error 2021-11-06 12:43:28: failed to create INotebook in kernel, UI Disabled = undefined [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.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-06 12:43:28: 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.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-06 12:43:28: failed to start INotebook in kernel, UI Disabled = undefined [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.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-06 12:43:28: 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.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Info 2021-11-06 12:43:28: KernelProcess output: Content-Length: 132
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 10836}}
Info 2021-11-06 12:43:28: Python Daemon (pid: 10836): Execute rpc method kill_kernel in DS Daemon
Info 2021-11-06 12:43:28: KernelProcess output: Content-Length: 206
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe", "pid": 10836}}Content-Length: 129
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 10836}}Content-Length: 140
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 21212", "pid": 10836}}Content-Length: 43
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "id": 2, "result": null}
Info 2021-11-06 12:43:28: Python Daemon (pid: 10836): Execute rpc method kill_kernel from u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-06 12:43:28: Python Daemon (pid: 10836): Kill kernel in DS Kernel Launcher Daemon
Info 2021-11-06 12:43:28: Python Daemon (pid: 10836): Kill kernel in DS Kernel Launcher Daemon, pid 21212
Info 2021-11-06 12:43:28: KernelProcess Exit Exit - undefined 

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Nov 6, 2021

@philipnye
Thanks for the logs please could you try the following:

  • install the latest version of vscode insiders and try it out, we've made a few changes with regards to starting kernels. Do provide the logs
  • Launch Jupyter manually outside vscode. As follows u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m Jupyter notebook. Let me know if that works.

@philipnye
Copy link
Author

Thanks @DonJayamanne.

This is my log from the latest VSCode Insiders build:

Info 2021-11-07 19:14:11: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-11-07 19:14:11: ZMQ install verified.
Info 2021-11-07 19:14:13: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 2021-11-07 19:14:23: Creating controller for interactive with interpreter u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-07 19:14:23: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher (Interactive)
Info 2021-11-07 19:14:23: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-11-07 19:14:24: Loading kernelspec from C:\Program Files\Python39\share\jupyter\kernels\python3\kernel.json for C:\Program Files\Python39\python.exe
Info 2021-11-07 19:14:24: Loading kernelspec from u:\DATA\Politics and Parliament\Ministers - Meetings\env\share\jupyter\kernels\python3\kernel.json for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-07 19:14:24: Starting Notebook in kernel.ts id = .jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher
Info 2021-11-07 19:14:24: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 2021-11-07 19:14:24: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 2021-11-07 19:14:24: Computing working directory vscode-interactive:Interactive-1.interactive
Info 2021-11-07 19:14:24: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":".jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.-m#ipykernel_launcher"}
Info 2021-11-07 19:14:24: Starting raw kernel Python 3.9.7 64-bit ('env': venv)
Info 2021-11-07 19:14:24: installMissingDependencies u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-07 19:14:24: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-07 19:14:24: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-07 19:14:24: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-07 19:14:24: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-07 19:14:25: Registering dummy command feature
Info 2021-11-07 19:14:25: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import jupyter"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import jupyter"
Info 2021-11-07 19:14:26: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import notebook"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import notebook"
Info 2021-11-07 19:14:27: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
Info 2021-11-07 19:14:30: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
Info 2021-11-07 19:15:02: Install Missing Dependencies, Class name = S, completed in 38488ms, has a falsy return value, Return Value: undefined
Info 2021-11-07 19:15:02: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-11-07 19:15:02: Launching kernel daemon for Python 3.9.7 64-bit ('env': venv) # u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-07 19:15:02: No custom variables for Kernel as interpreter is not conda, but is Venv
Info 2021-11-07 19:15:08: Creating daemon process for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe with env variables count 68
Info 2021-11-07 19:15:09: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-11-07 19:15:13: Starting kernel from scratch with options {"cwd":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts"}
Info 2021-11-07 19:15:13: Python Daemon (pid: 2404): Execute rpc method exec_module in DS Daemon
Info 2021-11-07 19:15:13: Python Daemon (pid: 2404): Execute rpc method exec_module from u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-07 19:15:13: Python Daemon (pid: 2404): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"2f1c4a74-86cc-4e1b-a590-735364b800ed"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-1904o71P69kc3Htm.json']
Info 2021-11-07 19:15:13: Python Daemon (pid: 2404): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"2f1c4a74-86cc-4e1b-a590-735364b800ed"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-1904o71P69kc3Htm.json']
Info 2021-11-07 19:15:13: Python Daemon (pid: 2404): Exec in DS Kernel Launcher Daemon (observable) ['u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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"2f1c4a74-86cc-4e1b-a590-735364b800ed"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-1904o71P69kc3Htm.json']
Info 2021-11-07 19:15:14: Python Daemon (pid: 2404): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-11-07 19:15:14: Python Daemon (pid: 2404): Kernel launched, with PID 17300
Warn 2021-11-07 19:15:14: Python Daemon (pid: 2404): Waiting for Kernel to die 17300
Info 2021-11-07 19:15:14: Launching kernel daemon, Class name = p, completed in 11828ms, has a truthy return value, Arg 1: <Uri:u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts\ministerialmeetings_readfiles.py>, Arg 2: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Arg 3: {"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"2f1c4a74-86cc-4e1b-a590-735364b800ed\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-1904o71P69kc3Htm.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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: <Return value cannot be serialized for logging>
Info 2021-11-07 19:15:14: Launching kernel in kernelProcess.ts, Class name = y, completed in 11828ms, has a truthy return value, Arg 1: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":13232},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":13232,"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":3,"_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":false,"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":true,"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":{"close":[null,null]},"_eventsCount":4,"_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":true,"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":3,"_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":3,"_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":false,"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":true,"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":{"close":[null,null]},"_eventsCount":4,"_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":true,"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":3,"_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,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Error 2021-11-07 19:16:14: Disposing kernel process due to an error [Error: timeout
	at Timeout.<anonymous> (c:\Users\nyep\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:805405)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-07 19:16:14: Dispose Kernel process
Info 2021-11-07 19:16:14: kill daemon
Error 2021-11-07 19:16:14: Timed out waiting to get a heartbeat from kernel process.
Error 2021-11-07 19:16:14: Raw session failed to start in given timeout
Info 2021-11-07 19:16:14: Shutdown session -- complete
Error 2021-11-07 19:16:14: failed to create INotebook in kernel, UI Disabled = undefined [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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-07 19:16:14: 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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-07 19:16:14: failed to start INotebook in kernel, UI Disabled = undefined [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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-07 19:16:14: 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-insiders\extensions\ms-toolsai.jupyter-2021.10.1001414422\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Info 2021-11-07 19:16:14: KernelProcess output: Content-Length: 131
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 2404}}
Info 2021-11-07 19:16:14: Python Daemon (pid: 2404): Execute rpc method kill_kernel in DS Daemon
Info 2021-11-07 19:16:14: KernelProcess output: Content-Length: 205
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe", "pid": 2404}}Content-Length: 128
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 2404}}Content-Length: 139
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 17300", "pid": 2404}}Content-Length: 43
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "id": 2, "result": null}
Info 2021-11-07 19:16:14: Python Daemon (pid: 2404): Execute rpc method kill_kernel from u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-07 19:16:14: Python Daemon (pid: 2404): Kill kernel in DS Kernel Launcher Daemon
Info 2021-11-07 19:16:14: Python Daemon (pid: 2404): Kill kernel in DS Kernel Launcher Daemon, pid 17300
Info 2021-11-07 19:16:14: KernelProcess Exit Exit - undefined 

If I've done it right, running U:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m Jupyter notebook I get No module named Jupyter.

If instead I do U:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\activate then Jupyter notebook I get what appears to be a functioning notebook.

Thanks again.

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Nov 7, 2021

  • After activating please run python -m Jupyter notebook.
    Instead of just jupyter notebook
  • Also please try the following after activating the environment
    python -c "import ipykernel; print(ipykernel.__version__)"
  • Also, what kind of environment is this, is it a virtual env or conda?

@philipnye
Copy link
Author

Ah, sorry.

  • python -m Jupyter notebook after activating the environment yields No moduled named Jupyter
  • python -c "import ipykernel; print(ipykernel.__version__)" yields 6.5.0
  • virtual env

Thanks, Don.

@DonJayamanne
Copy link
Contributor

Thanks for the information.

  • Please could you install Jupyter into this environment as follows:
    python -m pip install jupyter notebook
  • After that, please try running jupyter, and let me know how that goes (using python -m jupyter notebook.

@philipnye
Copy link
Author

Thanks. That seems to install fine, and running python -m jupyter notebook loads Jupyter notebook successfully. And VSCode using that environment is now working 🎉

@philipnye
Copy link
Author

Hi @DonJayamanne. Sorry to be resurrecting this, but today I'm getting the error again. Running python -m jupyter notebook in my environment loads a Jupyter notebook successfully, but VSCode gives the heartbeat error again (I'm now on v1.62.2).

My logs are as follows:

Info 2021-11-12 11:21:49: Experimentation service retrieved: [object Object]
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-11-12 11:21:50: ZMQ install verified.
Info 2021-11-12 11:21:51: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 2021-11-12 11:21:53: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-11-12 11:21:53: Process Execution: > C:\Program Files\Python39\python.exe -c "import jupyter"
> C:\Program Files\Python39\python.exe -c "import jupyter"
Info 2021-11-12 11:21:53: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-11-12 11:21:53: Process Execution: > C:\Program Files\Python39\python.exe -c "import notebook"
> C:\Program Files\Python39\python.exe -c "import notebook"
Info 2021-11-12 11:21:54: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-11-12 11:21:54: Process Execution: > C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
> C:\Program Files\Python39\python.exe -m jupyter kernelspec --version
Info 2021-11-12 11:21:57: Creating controller for interactive with interpreter u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-12 11:21:57: Starting interactive window with controller ID ms-toolsai.jupyter/.jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher (Interactive)
Info 2021-11-12 11:21:57: Setting setActiveController for vscode-interactive:Interactive-1.interactive
Info 2021-11-12 11:21:58: Creating daemon pool for C:\Program Files\Python39\python.exe with env variables count 0
Info 2021-11-12 11:21:58: 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-11-12 11:21:58: 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-11-12 11:21:58: 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-11-12 11:21:58: 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-11-12 11:21:58: 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-11-12 11:21:58: 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-11-12 11:21:58: Starting Notebook in kernel.ts id = .jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe.-m#ipykernel_launcher
Info 2021-11-12 11:21:58: Creating raw notebook for vscode-interactive:Interactive-1.interactive
Info 2021-11-12 11:21:58: Getting preferred kernel for vscode-interactive:Interactive-1.interactive
Info 2021-11-12 11:21:58: Computing working directory vscode-interactive:Interactive-1.interactive
Info 2021-11-12 11:21:58: Connecting to raw session for vscode-interactive:Interactive-1.interactive with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":".jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe.-m#ipykernel_launcher"}
Info 2021-11-12 11:21:58: Starting raw kernel Python 3.9.7 64-bit ('env': venv)
Info 2021-11-12 11:21:58: installMissingDependencies u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-12 11:21:58: Loading kernelspec from C:\Program Files\Python39\share\jupyter\kernels\python3\kernel.json for C:\Program Files\Python39\python.exe
Info 2021-11-12 11:21:58: Loading kernelspec from u:\DATA\Politics and Parliament\Ministers - Meetings\env\share\jupyter\kernels\python3\kernel.json for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-12 11:21:58: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-12 11:21:58: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-12 11:21:58: Hiding default kernel spec Python 3 (ipykernel), python
Info 2021-11-12 11:21:58: Kernel python397jvsc74a57bd0ac59ebe37160ed0dfa835113d9b8498d9f09ceb179beaac4002f036b9467c963 matches Python 3.9.7 64-bit based on interpreter path.
Info 2021-11-12 11:21:59: Registering dummy command feature
Info 2021-11-12 11:22:06: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m pip list
Info 2021-11-12 11:22:08: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -c "import ipykernel"
Info 2021-11-12 11:22:32: Install Missing Dependencies, Class name = S, completed in 33940ms, has a falsy return value, Return Value: undefined
Info 2021-11-12 11:22:32: Kernel launching with ports 9000,9001,9002,9003,9004. Start port is 9000
Info 2021-11-12 11:22:32: Launching kernel daemon for Python 3.9.7 64-bit ('env': venv) # u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-12 11:22:32: No custom variables for Kernel as interpreter is not conda, but is Venv
Info 2021-11-12 11:22:36: Creating daemon process for u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe with env variables count 68
Info 2021-11-12 11:22:36: Process Execution: > u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Info 2021-11-12 11:22:39: Starting kernel from scratch with options {"cwd":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts"}
Info 2021-11-12 11:22:39: Python Daemon (pid: 41404): Execute rpc method exec_module in DS Daemon
Info 2021-11-12 11:22:39: Python Daemon (pid: 41404): Execute rpc method exec_module from u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-12 11:22:39: Python Daemon (pid: 41404): Exec module in DS Kernel Launcher Daemon ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"6bfa699d-f042-4402-acc5-c84cf6473623"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-239124O34tQsmLJOn.json']
Info 2021-11-12 11:22:39: Python Daemon (pid: 41404): Exec in DS Kernel Launcher Daemon (observable) ipykernel_launcher with args ['--ip=127.0.0.1', '--stdin=9003', '--control=9001', '--hb=9000', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"6bfa699d-f042-4402-acc5-c84cf6473623"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-239124O34tQsmLJOn.json']
Info 2021-11-12 11:22:39: Python Daemon (pid: 41404): Exec in DS Kernel Launcher Daemon (observable) ['u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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"6bfa699d-f042-4402-acc5-c84cf6473623"', '--shell=9002', '--transport="tcp"', '--iopub=9004', '--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-239124O34tQsmLJOn.json']
Info 2021-11-12 11:22:40: Python Daemon (pid: 41404): Exec in DS Kernel Launcher Daemon (observable)
Info 2021-11-12 11:22:40: Python Daemon (pid: 41404): Kernel launched, with PID 40936
Warn 2021-11-12 11:22:40: Python Daemon (pid: 41404): Waiting for Kernel to die 40936
Info 2021-11-12 11:22:40: Launching kernel daemon, Class name = p, completed in 8541ms, has a truthy return value, Arg 1: <Uri:u:\DATA\Politics and Parliament\Ministers - Meetings\Scripts\ministerialmeetings_download_quarterlyreleases.py>, Arg 2: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Arg 3: {"interpreterPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","name":"python397jvsc74a57bd04c84c8dadea1b5fe07e8c14ef57dcc4400a9abda0fde6d3b00b34de09f930c65","argv":["python","-m","ipykernel_launcher","--ip=127.0.0.1","--stdin=9003","--control=9001","--hb=9000","--Session.signature_scheme=\"hmac-sha256\"","--Session.key=b\"6bfa699d-f042-4402-acc5-c84cf6473623\"","--shell=9002","--transport=\"tcp\"","--iopub=9004","--f=C:\\Users\\nyep\\AppData\\Local\\Temp\\tmp-239124O34tQsmLJOn.json"],"language":"python","path":"python","display_name":"Python 3.9.7 64-bit ('env': venv)","metadata":{"interpreter":{"sysPrefix":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","envType":"Venv","envName":"env","envPath":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env","path":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\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: <Return value cannot be serialized for logging>
Info 2021-11-12 11:22:40: Launching kernel in kernelProcess.ts, Class name = y, completed in 8541ms, has a truthy return value, Arg 1: "u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\Scripts", Return Value: {"proc":{"_events":{},"_eventsCount":2,"_closesNeeded":3,"_closesGot":0,"connected":false,"signalCode":null,"exitCode":null,"killed":false,"spawnfile":"u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","_handle":{"pid":33396},"spawnargs":["u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe","-m","vscode_datascience_helpers.daemon","--daemon-module=vscode_datascience_helpers.kernel_launcher_daemon","-v"],"pid":33396,"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":3,"_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":false,"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":true,"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":{"close":[null,null]},"_eventsCount":4,"_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":true,"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":3,"_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":3,"_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":false,"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":true,"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":{"close":[null,null]},"_eventsCount":4,"_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":true,"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":3,"_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,"observers":[],"closed":false,"isStopped":false,"hasError":false,"thrownError":null}}
Error 2021-11-12 11:23:40: Disposing kernel process due to an error [Error: timeout
	at Timeout.<anonymous> (c:\Users\nyep\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:805405)
	at listOnTimeout (internal/timers.js:554:17)
	at processTimers (internal/timers.js:497:7)]
Info 2021-11-12 11:23:40: Dispose Kernel process
Info 2021-11-12 11:23:40: kill daemon
Error 2021-11-12 11:23:40: Timed out waiting to get a heartbeat from kernel process.
Error 2021-11-12 11:23:40: Raw session failed to start in given timeout
Info 2021-11-12 11:23:40: Shutdown session -- complete
Error 2021-11-12 11:23:40: failed to create INotebook in kernel, UI Disabled = undefined [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.10.1101450599\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-12 11:23:40: 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.10.1101450599\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-12 11:23:40: failed to start INotebook in kernel, UI Disabled = undefined [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.10.1101450599\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Error 2021-11-12 11:23:40: 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.10.1101450599\out\client\extension.js:66:797271)
	at runNextTicks (internal/process/task_queues.js:58:5)
	at listOnTimeout (internal/timers.js:523:9)
	at processTimers (internal/timers.js:497:7)] {
  category: 'timeout'
}
Info 2021-11-12 11:23:40: KernelProcess output: Content-Length: 132
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel in DS Daemon", "pid": 41404}}
Info 2021-11-12 11:23:40: Python Daemon (pid: 41404): Execute rpc method kill_kernel in DS Daemon
Info 2021-11-12 11:23:40: KernelProcess output: Content-Length: 206
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Execute rpc method kill_kernel from u:\\DATA\\Politics and Parliament\\Ministers - Meetings\\env\\Scripts\\python.exe", "pid": 41404}}Content-Length: 129
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon", "pid": 41404}}Content-Length: 140
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "method": "log", "params": {"level": "INFO", "msg": "Kill kernel in DS Kernel Launcher Daemon, pid 40936", "pid": 41404}}Content-Length: 43
Content-Type: application/vscode-jsonrpc; charset=utf8

{"jsonrpc": "2.0", "id": 2, "result": null}
Info 2021-11-12 11:23:40: Python Daemon (pid: 41404): Execute rpc method kill_kernel from u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts\python.exe
Info 2021-11-12 11:23:40: Python Daemon (pid: 41404): Kill kernel in DS Kernel Launcher Daemon
Info 2021-11-12 11:23:40: Python Daemon (pid: 41404): Kill kernel in DS Kernel Launcher Daemon, pid 40936
Info 2021-11-12 11:23:40: KernelProcess Exit Exit - undefined 

@DonJayamanne
Copy link
Contributor

I suspect it had something to do with the fact that it's running on as separate drive (hence the intermittent failures). Is it on a USB or network drive? (u:\DATA\Politics and Parliament\Ministers - Meetings\env\Scripts)

  • Please could you try using another interpreter (from your c drive)
  • Please could you try installing the latest vscode insiders version and giving that a go
  • If all of the above fail, please try installing Jupyter into the above environment u:\...python.exe -m pip install jupyter notebook, then launch Jupyter as follows u:\...python.exe -m jupyter notebook. Let's me know if that works.

@DonJayamanne DonJayamanne assigned DonJayamanne and unassigned rchiodo Nov 12, 2021
@philipnye
Copy link
Author

Thanks, Don. You're correct in thinking that the U: drive is a network drive that I'm accessing via a firewall.

Using an interpreter on my C: drive works successfully. (The latest VSCode Insiders doesn't, using the interpreter in my venv.)

@DonJayamanne
Copy link
Contributor

Thanks for the feedback.

I believe the issue is because of the firewall. We spawn a process that's on a network drive and 5 sockets are opened against that process.
I'd consider moving this into a local drive or tweeking the firewall accordingly.

I'm going to close this issue as this is an environmental issue and things work as expected Regen thinking on a local drive.

@Abdullah3780
Copy link

Hi, I'm new to python and want to run my code. @DonJayamanne I'm facing this issue
Error 00:52:57: Failed to execute cells in CellExecutionQueue [s [Error]: Unable to start Kernel 'Python 3.10.2 64-bit' due to connection timeout.
View Jupyter log for further details.
at c:\Users\A.vscode\extensions\ms-toolsai.jupyter-2022.2.1030672458\out\client\extension.js:2:795035
at runMicrotasks ()
at runNextTicks (internal/process/task_queues.js:58:5)
at listOnTimeout (internal/timers.js:523:9)
at processTimers (internal/timers.js:497:7)
at async x.launch (c:\Users\A.vscode\extensions\ms-toolsai.jupyter-2022.2.1030672458\out\client\extension.js:2:795106)] {
category: 'timeout',
kernelConnection: {
kind: 'startUsingPythonInterpreter',
kernelSpec: {
specFile: 'C:\Users\A\AppData\Roaming\jupyter\kernels\python3102jvsc74a57bd0afe1b852320376a9a48055bdfe6ac9b09e17658875aefa9b83cc552fb632d8c5\kernel.json',
interpreterPath: 'C:\Users\A\AppData\Local\Programs\Python\Python310\python.exe',
isRegisteredByVSC: 'registeredByNewVersionOfExt',
name: 'python3102jvsc74a57bd0afe1b852320376a9a48055bdfe6ac9b09e17658875aefa9b83cc552fb632d8c5',
argv: [Array],
language: 'python',
path: 'python',
display_name: 'Python 3.10.2 64-bit',
metadata: [Object],
env: {}
},
interpreter: {
sysPrefix: 'C:\Users\A\AppData\Local\Programs\Python\Python310',
envType: 'Global',
envName: '',
envPath: '',
path: 'C:\Users\A\AppData\Local\Programs\Python\Python310\python.exe',
architecture: 3,
sysVersion: '3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]',
version: [Object],
companyDisplayName: 'PythonCore',
displayName: 'Python 3.10.2 64-bit',
detailedDisplayName: 'Python 3.10.2 64-bit'
},
id: '.jvsc74a57bd0afe1b852320376a9a48055bdfe6ac9b09e17658875aefa9b83cc552fb632d8c5.C:\Users\A\AppData\Local\Programs\Python\Python310\python.exe.C:\Users\A\AppData\Local\Programs\Python\Python310\python.exe.-m#ipykernel_launcher'
}
}
Info 00:52:57: Cancel pending cells
Info 00:52:57: Cell 0 executed with state Idle

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2023
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
Projects
None yet
Development

No branches or pull requests

5 participants