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.

Fail to activate the Jupyter extension

See original GitHub issue

Applies To

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

What happened?

The latest pre-release version of the Jupyter extension cannot be activated as reported by https://github.com/microsoft/vscode-jupyter/issues/11938#issuecomment-1325302330.

A history version works for me: v2022.11.1003281132

VS Code Version

1.73.1

Jupyter Extension Version

v2022.11.1003301027

Jupyter logs

Visual Studio Code (1.73.1, ssh-remote, desktop)
Jupyter Extension Version: 2022.11.1003301027.
Python Extension Version: 2022.19.13251009.
Workspace folder /***
info 17:34:03.699: ZMQ install verified.
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
error 17:34:04.188: Failure during activation. [TypeError: s.notebooks.createNotebookControllerDetectionTask is not a function
	at h.startRefreshWithPython (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2070921)
	at h.activate (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2069968)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163983
	at Array.map (<anonymous>)
	at c.activateSync (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163973)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:1576749]
error 17:34:04.189: sendStartupTelemetry() failed. [TypeError: s.notebooks.createNotebookControllerDetectionTask is not a function
	at h.startRefreshWithPython (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2070921)
	at h.activate (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2069968)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163983
	at Array.map (<anonymous>)
	at c.activateSync (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163973)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:1576749]
error 17:34:04.189: extension activation failed [TypeError: s.notebooks.createNotebookControllerDetectionTask is not a function
	at h.startRefreshWithPython (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2070921)
	at h.activate (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2069968)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163983
	at Array.map (<anonymous>)
	at c.activateSync (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163973)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:1576749]
error 17:34:04.207: Failed to active the Jupyter Extension [TypeError: s.notebooks.createNotebookControllerDetectionTask is not a function
	at h.startRefreshWithPython (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2070921)
	at h.activate (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:2069968)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163983
	at Array.map (<anonymous>)
	at c.activateSync (/***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:17:163973)
	at /***/.vscode-server/extensions/ms-toolsai.jupyter-2022.11.1003301027/out/extension.node.js:2:1576749]

Coding Language and Runtime Version

Python v3.8.13

Language Extension Version (if applicable)

Pylance v2022.11.30

Anaconda Version (if applicable)

conda v4.11.0

Running Jupyter locally or remotely?

Remote

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
amungercommented, Dec 1, 2022

Ok, I have it cleared up now. There is still an issue where pre-release jupyter is using a proposed API that is not available in stable VSCode. We bumped the required version in our pre-release to enforce the dependency and prevent these versions being used together, but since we already pushed a pre-release version with this bad configuration, it will be used by default as the latest compatible version available.

This will resolve by next week when the new stable releases go live, but for now, the workarounds for now are to install VSCode insiders or downgrade the Jupyter extension to v2022.11.1003281132. Sorry for the inconvenience

1reaction
kylebarroncommented, Dec 8, 2022

This is indeed now working for me as of vscode 1.74.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Jupyter extension activation failed when opening ...
Just ran into this today (I'm on MacOS for my work computer). In my case, upgrading to the pre-release version of the Jupyter...
Read more >
Extension Activation failed #18109 - microsoft/vscode-python
Actual behaviour. Two errors display when selecting python interpreter: " Extension activation failed, run the 'developer: Toggle Developer ...
Read more >
Linux - Jupyter Extension activation failed : r/vscode - Reddit
I'm trying to open and execute some ipynb files in Code on Arch Linux. Installed Python and Jupyter extensions.
Read more >
Solved Here in this image the user is not able to activate
Question: Here in this image the user is not able to activate jupyter ... Source: Jupyter (Extension) AO In 1, Col1 Spaces: 4...
Read more >
What to do when things go wrong - The Jupyter Notebook
Jupyter fails to start · Have you installed it? ;-) · If you're using a menu shortcut or Anaconda launcher to...
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