question-mark
Stuck on an issue?

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

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

Problems running a notebook in Codespaces

See original GitHub issue

Environment data

  • VS Code version: Version: 1.53.0-insider Commit: 1a9dd758530782ee4bb09a15bdc484f3dcb9b5a3 Date: 2021-01-26T05:20:01.859Z Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36

  • Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025

  • Python Extension version (available under the Extensions sidebar): v2021.1.502429796

  • OS (Windows | Mac | Linux distro) and version: Codespaces

  • Python and/or Anaconda version: Python 3.8.6

  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): XXX

  • Jupyter server running: Local | Remote | N/A

Expected behaviour

Expected to be able to open a Notebook and run cells

Actual behaviour

There is an array of issues that I encountered when trying to run a notebook in a Codespace.

1. Installing Python extension from toast notification

image

I just have the Jupyter extension installed and get prompted to install the Python extension. Clicking Yes prompts me with: image

This feels like it should just bring up the Extension view (unsure if this is a VSC issue or Extension).

2. Notification overload

image

Seems like the start page webview couldn’t open, which seems fixable. Then it tells me Pylance isn’t installed, which I don’t want but noticed there are items in my settings that remained when I had originally installed but didn’t get removed during the uninstall. Then the “Some features might not be available…” notifications feels unnecessary as that is the case with all language extensions (requires a file to be opened).

3. Trusting notebooks

image

When clicking on “trust all notebooks”, I am taken to the settings page but it’s on the “User” tab and tells me there are no settings found:

image

It isn’t until I navigate to the remote tab that I can see the setting (unsure if this is a VSC or Extension issue)

4. Canceled error when running all

image

There’s no other message here and this happened when running any cells

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Create a codespace
  2. Install Jupyter extension
  3. Create notebook file
  4. See notifications
  5. Install Python extension
  6. Try running notebook again

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to )

User belongs to experiment group 'NativeNotebookEditor'
Error 2021-01-26 18:31:39: Jupyter Kernel Spec not found for a local connection
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import jupyter"
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import notebook"
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py -c "import ipykernel"
Error 2021-01-26 18:31:46: Jupyter Kernel Spec not found for a local connection
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-01-26 18:31:52: Failed to start the Daemon, StdErr:  Traceback (most recent call last):
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 126, in main
    daemon_module = importlib.import_module(args.daemon_module)
  File "/opt/python/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/kernel_launcher_daemon.py", line 22, in <module>
    from vscode_datascience_helpers.kernel_launcher import launch_kernel
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/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 "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py", line 26, in <module>
    runpy.run_module(module, run_name="__main__", alter_sys=True)
  File "/opt/python/3.8.6/lib/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/python/3.8.6/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/python/3.8.6/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 137, in <module>
    main()
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 133, in main
    raise Exception("Failed to start daemon")
Exception: Failed to start daemon

Error 2021-01-26 18:31:52: Failed to start the Daemon, ProcEndEx Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
Error 2021-01-26 18:31:52: Failed  to start the Daemon, Ex Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:31:52: Pinging Daemon Failed, Class name = h, completed in 5002ms, has a falsy return value, Arg 1: {}, Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:31:52: Failed to create daemon, Class name = h, completed in 5022ms, has a falsy return value, , Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:31:52: Failed to create the daemon service, defaulting to activated environment Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"95d51fd6-d3fe-42d6-ac74-c0a0f81612c0" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-7481ZpJfaOu6cdvQ.json
cwd: ~/workspace/personal/notebooks/strava
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"95d51fd6-d3fe-42d6-ac74-c0a0f81612c0" --shell=9002 --transport="tcp" --iopub=9004 --f=/tmp/tmp-7481ZpJfaOu6cdvQ.json
cwd: ~/workspace/personal/notebooks/strava
Error 2021-01-26 18:32:22: Timed out waiting to get a heartbeat from kernel process.
Error 2021-01-26 18:32:22: Failed to connect raw kernel session: Error: Timed out waiting to get a heartbeat from kernel process.
Error 2021-01-26 18:32:22: failed to create INotebook in kernel Error: Timed out waiting to get a heartbeat from kernel process.
    at m.waitForHeartbeat (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:49:637256) {
  vslsStack: [ CallSite {} ]
}
Error 2021-01-26 18:32:22: DataScience Error Error: Timed out waiting to get a heartbeat from kernel process.
    at m.waitForHeartbeat (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:49:637256) {
  vslsStack: [ CallSite {} ]
}
Error 2021-01-26 18:32:22: failed to create INotebook in kernel Error: Timed out waiting to get a heartbeat from kernel process.
    at m.waitForHeartbeat (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:49:637256) {
  vslsStack: [ CallSite {} ]
}
Error 2021-01-26 18:32:22: DataScience Error Error: Timed out waiting to get a heartbeat from kernel process.
    at m.waitForHeartbeat (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:49:637256) {
  vslsStack: [ CallSite {} ]
}
Error 2021-01-26 18:32:25: Jupyter Kernel Spec not found for a local connection
Error 2021-01-26 18:32:25: Failed to connect raw kernel session: Error: Canceled
Error 2021-01-26 18:32:25: failed to create INotebook in kernel s [Error]: Canceled
    at /home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:1:149921
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:25: DataScience Error s [Error]: Canceled
    at /home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:1:149921
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
> /opt/conda/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-01-26 18:32:27: Jupyter Kernel Spec not found for a local connection
Error 2021-01-26 18:32:27: Failed to connect raw kernel session: Error: Canceled
Error 2021-01-26 18:32:27: failed to create INotebook in kernel s [Error]: Canceled
    at /home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:1:149921
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:27: DataScience Error s [Error]: Canceled
    at /home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:1:149921
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
> /opt/conda/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-01-26 18:32:30: Failed to start the Daemon, StdErr:  Traceback (most recent call last):
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 126, in main
    daemon_module = importlib.import_module(args.daemon_module)
  File "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/kernel_launcher_daemon.py", line 22, in <module>
    from vscode_datascience_helpers.kernel_launcher import launch_kernel
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/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 "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py", line 26, in <module>
    runpy.run_module(module, run_name="__main__", alter_sys=True)
  File "/opt/conda/lib/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 137, in <module>
    main()
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 133, in main
    raise Exception("Failed to start daemon")
Exception: Failed to start daemon

Error 2021-01-26 18:32:30: Failed to start the Daemon, ProcEndEx Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
Error 2021-01-26 18:32:30: Failed  to start the Daemon, Ex Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:30: Pinging Daemon Failed, Class name = h, completed in 5001ms, has a falsy return value, Arg 1: {}, Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:30: Failed to create daemon, Class name = h, completed in 5019ms, has a falsy return value, , Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:30: Failed to create the daemon service, defaulting to activated environment Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
> /opt/conda/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9008 --control=9006 --hb=9005 --Session.signature_scheme="hmac-sha256" --Session.key=b"129fad8c-e83c-4d93-bd17-84c0bad51488" --shell=9007 --transport="tcp" --iopub=9009 --f=/tmp/tmp-74818CQ6aoUVx0sp.json
cwd: ~/workspace/personal/notebooks/strava
Error 2021-01-26 18:32:32: Failed to start the Daemon, StdErr:  Traceback (most recent call last):
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 126, in main
    daemon_module = importlib.import_module(args.daemon_module)
  File "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/kernel_launcher_daemon.py", line 22, in <module>
    from vscode_datascience_helpers.kernel_launcher import launch_kernel
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/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 "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py", line 26, in <module>
    runpy.run_module(module, run_name="__main__", alter_sys=True)
  File "/opt/conda/lib/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 137, in <module>
    main()
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 133, in main
    raise Exception("Failed to start daemon")
Exception: Failed to start daemon

Error 2021-01-26 18:32:32: Failed to start the Daemon, ProcEndEx Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
Error 2021-01-26 18:32:32: Failed  to start the Daemon, Ex Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:32: Pinging Daemon Failed, Class name = h, completed in 5002ms, has a falsy return value, Arg 1: {}, Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:32: Failed to create daemon, Class name = h, completed in 5017ms, has a falsy return value, , Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:32: Failed to create the daemon service, defaulting to activated environment Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
> /opt/conda/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9013 --control=9011 --hb=9010 --Session.signature_scheme="hmac-sha256" --Session.key=b"cb992fc2-7d4d-435d-aa13-ef9209cca03d" --shell=9012 --transport="tcp" --iopub=9014 --f=/tmp/tmp-7481iWFmFxaxo51b.json
cwd: ~/workspace/personal/notebooks/strava
Error 2021-01-26 18:32:36: Jupyter Kernel Spec not found for a local connection
Error 2021-01-26 18:32:39: Jupyter Kernel Spec not found for a local connection
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.kernel_launcher_daemon -v
Error 2021-01-26 18:32:44: Failed to start the Daemon, StdErr:  Traceback (most recent call last):
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 126, in main
    daemon_module = importlib.import_module(args.daemon_module)
  File "/opt/python/3.8.6/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/kernel_launcher_daemon.py", line 22, in <module>
    from vscode_datascience_helpers.kernel_launcher import launch_kernel
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/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 "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py", line 26, in <module>
    runpy.run_module(module, run_name="__main__", alter_sys=True)
  File "/opt/python/3.8.6/lib/python3.8/runpy.py", line 207, in run_module
    return _run_module_code(code, init_globals, run_name, mod_spec)
  File "/opt/python/3.8.6/lib/python3.8/runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "/opt/python/3.8.6/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 137, in <module>
    main()
  File "/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/vscode_datascience_helpers/daemon/__main__.py", line 133, in main
    raise Exception("Failed to start daemon")
Exception: Failed to start daemon

Error 2021-01-26 18:32:44: Failed to start the Daemon, ProcEndEx Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
Error 2021-01-26 18:32:44: Failed  to start the Daemon, Ex Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:44: Pinging Daemon Failed, Class name = h, completed in 5002ms, has a falsy return value, Arg 1: {}, Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:44: Failed to create daemon, Class name = h, completed in 5023ms, has a falsy return value, , Return Value: undefined Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
Error 2021-01-26 18:32:44: Failed to create the daemon service, defaulting to activated environment Error: Timeout waiting for daemon to start
    at Timeout._onTimeout (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:32:202723)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  vslsStack: [ CallSite {}, CallSite {}, CallSite {} ]
}
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9018 --control=9016 --hb=9015 --Session.signature_scheme="hmac-sha256" --Session.key=b"a3ce3ab4-13f7-44b4-905c-040cd5bfb118" --shell=9017 --transport="tcp" --iopub=9019 --f=/tmp/tmp-7481PjsS9T3nalvJ.json
cwd: ~/workspace/personal/notebooks/strava
> /opt/python/latest/bin/python ~/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/pythonFiles/pyvsc-run-isolated.py ipykernel_launcher --ip=127.0.0.1 --stdin=9018 --control=9016 --hb=9015 --Session.signature_scheme="hmac-sha256" --Session.key=b"a3ce3ab4-13f7-44b4-905c-040cd5bfb118" --shell=9017 --transport="tcp" --iopub=9019 --f=/tmp/tmp-7481PjsS9T3nalvJ.json
cwd: ~/workspace/personal/notebooks/strava
Error 2021-01-26 18:33:00: Timed out waiting to get a heartbeat from kernel process.
Error 2021-01-26 18:33:02: Timed out waiting to get a heartbeat from kernel process.
Error 2021-01-26 18:33:14: Timed out waiting to get a heartbeat from kernel process.
Error 2021-01-26 18:33:14: Failed to connect raw kernel session: Error: Timed out waiting to get a heartbeat from kernel process.
Error 2021-01-26 18:33:14: failed to create INotebook in kernel Error: Timed out waiting to get a heartbeat from kernel process.
    at m.waitForHeartbeat (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:49:637256) {
  vslsStack: [ CallSite {} ]
}
Error 2021-01-26 18:33:14: DataScience Error Error: Timed out waiting to get a heartbeat from kernel process.
    at m.waitForHeartbeat (/home/codespace/.vscode-remote/extensions/ms-toolsai.jupyter-2020.12.414227025/out/client/extension.js:49:637256) {
  vslsStack: [ CallSite {} ]
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
miguelsoloriocommented, Jan 27, 2021

FYI: looks like I can’t install a vsix from my desktop to a codespace, so i had to upload it to the file explorer and then select it from there.

@joyceerhl thanks, that one did prompt me to install ipykernel and it now works 🎉

image

0reactions
greazercommented, Jan 28, 2021

The blocking issue of not being able to run a cell has been fixed. The Python extension installation is being tracked as https://github.com/microsoft/vscode/issues/115344.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developing with GitHub Codespaces - Visual Studio Code
Dragging and dropping files from VS Code to a Codespace (and vice versa) does not work. You can see more context in issue...
Read more >
Jupyter lab in a GitHUB Codespace - YouTube
Jupyter notebooks are a common tool in science and engineering. Often you run these notebooks on your own computer with your own computation ......
Read more >
GitHub Codespaces for Machine Learning - dlite.cc
It's not easy keeping your notebooks DRY in a notebook-only environment. This results in a bloated, inconsistent code base. Explicit vs. implied ...
Read more >
Exciting new GitHub features powering machine learning
With notebooks you can try several ideas with different data and model shapes ... GPUs for Codespaces; Zero-config notebooks in Codespaces ...
Read more >
My experience switching to GitHub codespaces - Eric J. Ma
If you're used to running code in Jupyter notebooks, then you should ensure that Jupyter is included in your environment definition. You should ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

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

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found