I had the same issue (at least it seemed the same), however it is possible to work around it if you are using the Python extension in conjunction with Remote Debugging.

You can ignore the extension's activation failure if that is your primary use, since VSCode is still able to debug remotely using Python Remote Attach.


After some more work on this, I found that updating the Python Extension to the pre-release version cleared up the various errors that came with the recent updates.

Answer from Zachary Barnett on Stack Overflow
🌐
GitHub
github.com › microsoft › vscode-python › issues › 18109
Extension Activation failed · Issue #18109 · microsoft/vscode-python
December 3, 2021 - " Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details." And when I try running any python code, I get: "Couldn't start client Java Language Server" The python extension keeps loading as well. Open any python code in VSC.
Author   sherxyar
Discussions

Unable to debugger for python , it says "Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information."
Unable to debugger for python , it says "Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information." · Activating extension 'ms-python.python' failed: Extension 'ms-python.python' CANNOT use API proposal: terminalShellIntegration. More on community.firebasestudio.dev
🌐 community.firebasestudio.dev
15
1
September 6, 2024
visual studio code - How would I fix the issue of the python extension loading and Extension activation failed messages appearing? - Stack Overflow
19 Python "Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information" More on stackoverflow.com
🌐 stackoverflow.com
visual studio code - Python "Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information" - Stack Overflow
Unable to run/debug my python file. I KNOW I downloaded Python on my computer. I know I downloaded the extension in VS Code. Every time I try to run even a simple print("abc") line of cod... More on stackoverflow.com
🌐 stackoverflow.com
Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.#6863 ... bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug ... After vscode got its python insider's daily update(today), it ... More on github.com
🌐 github.com
7
August 6, 2019
Top answer
1 of 3
19

I had this same issue and finally got it fixed!


If you are on an Linux and are using an Arch-based distro with AUR support, simply install the code-features package using:

yay -S code-features

or any AUR helper of your choosing.


On other operating systems, you should do the following:

Open your VSCode's product.json. I do not know where this file is on your operating system, so please do some research.

Look for the following line:

"extensionAllowedProposedApi": [ ...

Add the following entry to that array:

"ms-toolsai.jupyter": ["notebookConcatTextDocument", 
    "notebookControllerKind", "notebookDebugOptions", "notebookDeprecated", 
    "notebookEditor", "notebookEditorDecorationType", "notebookEditorEdit", 
    "notebookMessaging", "notebookMime", "notebookCellExecutionState", 
    "portsAttributes", "textDocumentNotebook", "quickPickSortByLabel"]

For example, if the line was originally:

"extensionAllowedProposedApi": [ "extension1", "extension2" ]

Then change it to:

"extensionAllowedProposedApi": [ "extension1", "extension2", 
    "ms-toolsai.jupyter": ["notebookConcatTextDocument", 
    "notebookControllerKind", "notebookDebugOptions", "notebookDeprecated", 
    "notebookEditor", "notebookEditorDecorationType", "notebookEditorEdit", 
    "notebookMessaging", "notebookMime", "notebookCellExecutionState", 
    "portsAttributes", "textDocumentNotebook", "quickPickSortByLabel"] ]

Note that with the second method, you will need to edit product.json every time you update VSCode.

2 of 3
6

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 extension (v2022.5.1001281006) solved it right away.

If you're not an experienced programmer/software engineer, as is the case for me, I suggest trying to upgrade (or roll back) either VS code or the plugin itself before going with your own dev code for the plugin, as with @CAG2 pt2 answer. (Personally, I had trouble finding a 'product.json' file; perhaps you need an insider's build of VS code for that kind of thing [edit]: https://code.visualstudio.com/api/advanced-topics/using-proposed-api, in which case I think you'd be editing 'package.json').

🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
[SOLVED] VS Code, after upgrading: Python extension fails to load...? / Applications & Desktop Environments / Arch Linux Forums
UPDATE: I found https://github.com/microsoft/vscode-python/issues/15445 and now understand that I should use the CONSOLE-stuff from Help > Toggle Developer Tools. This reveals: *** Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
🌐
GitHub
github.com › microsoft › vscode-python › issues › 6863
Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information. · Issue #6863 · microsoft/vscode-python
August 6, 2019 - Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.#6863 ... bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug ... After vscode got its python insider's daily update(today), it cannot load the extension and displays what the title shows above.
Author   AeneasZhu
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode-python › issues › 25489
VSCode-Python Extension Activation Failed · Issue #25489 · microsoft/vscode-python
September 28, 2025 - 2025-09-28 20:30:25.860 [info] > conda info --json 2025-09-28 20:30:45.531 [info] Active interpreter [c:\Users\trung\Downloads\MyDevs\NLP.ipynb]: C:\MyPrograms\WinPython\python\python.exe 2025-09-28 23:57:39.319 [info] Experiment 'pythonSurveyNotification' is active 2025-09-28 23:57:39.320 [error] extension activation failed Error: command 'python.viewOutput' already exists at ey.registerCommand (file:///c:/MyPrograms/Tools/VSCode/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:40314) at Object.registerCommand (file:///c:/MyPrograms/Tools/VSCode/resources/app/out/vs/workben
Author   duytrung
🌐
GitHub
github.com › microsoft › vscode-python › issues › 24272
python extension activation failed · Issue #24272 · microsoft/vscode-python
October 8, 2024 - Python extension activation failed Message: run the Developer toggle developer tools command for more information Developer: Toggle Developer Tools command missing Version: 1.89.1 Commit: cf213cd39...
Author   CorneliuPopescu
🌐
GitHub
github.com › microsoft › vscode-python › issues › 20456
Extension activation failed under latest insiders build · Issue #20456 · microsoft/vscode-python
January 4, 2023 - A few hours ago VSC was updated to the latest insiders build and upon restart the Python extension fails to load with the following error message being shown in the Developer Tools console: Activating extension 'ms-python.python' failed: this.a.sendEventData is not a function.
Author   ghylander
🌐
GitHub
github.com › microsoft › vscode-python › issues › 24023
Extension activation failed when the notebook was opened and switched to restricted mode. · Issue #24023 · microsoft/vscode-python
August 29, 2024 - Extension activation failed when the notebook was opened and switched to restricted mode. Output for Python Language Server in the Output panel
Author   ttSpace
🌐
YouTube
youtube.com › coderide
extension activation failed run the developer toggle python - YouTube
Instantly Download or Run the code at https://codegive.com title: troubleshooting extension activation failed in python: a developer's guideintroduction:ext...
Published   March 16, 2024
Views   363
🌐
Reddit
reddit.com › r/vscode › having an issue with the python extension
r/vscode on Reddit: Having an issue with the Python Extension
February 23, 2023 -

Hello, I am trying to download the Python extension from Microsoft and it's not working, I am getting this error:

Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.

Additionally at the bottom, the spinning "Python extension loading..." just never finishes loading. I'm trying to debug my code and can't, can anyone help? Thank you !

🌐
Code with Mosh
forum.codewithmosh.com › t › python-extension-activation-failed › 12861
Python extension activation failed - Code with Mosh Forum
June 5, 2022 - Python extension activation Failed…when select python interpreter then shows (Cannot read properties of undefined (reading’pattern’))
🌐
GitHub
github.com › microsoft › vscode-python › issues › 15808
vscode-insider with Extension activation failed · Issue #15808 · microsoft/vscode-python
March 30, 2021 - Opening a python file prints Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
Author   yanke1311
🌐
Reddit
reddit.com › r/vscode › jupyter extension activation failed can't run any notebook cells. helpp
r/vscode on Reddit: Jupyter Extension Activation Failed Can't Run Any Notebook Cells. HELPP
October 9, 2025 -

Hey everyone,

I'm running into a persistent issue with the Jupyter extension in VS Code and I'm hoping someone can point me in the right direction.

I'm trying to run a simple Python cell in a .ipynb notebook, but I can't execute anything because the Jupyter extension fails to start. As you can see in the screenshot, I keep getting the error notification: Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.

What I've Tried So Far:

  • Reinstalling: I have completely uninstalled and reinstalled the Jupyter extension (and its related dependencies like the Python extension) multiple times.

  • Restarts: I have closed and reopened VS Code, and even restarted my computer.

  • New Environments: I've created fresh virtual environments (using venv) and installed ipykernel within them, but the issue persists no matter which interpreter I select.

  • Different Files: This happens with any notebook file, even a brand new one with a single print() statement.

I feel like I'm missing something obvious, but I can't figure out what

🌐
GitHub
github.com › microsoft › vscode-python › issues › 8632
Extension failed to activate due to error: Cannot read property 'length' of undefined · Issue #8632 · microsoft/vscode-python
November 17, 2019 - After installing the Python extension in VSCode, I'm getting the following error message. Error Python Extension: 2019-11-17 07:49:10: extension activation failed [TypeError: Cannot read property 'length' of undefined at m.update (c:\Use...
Author   wmeints