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

visual studio code - How to fix Jupyter extension activation failed when opening python files? - Stack Overflow
I installed python lately on my macos system and when I try to open a python file I see this error popup about Jupyter extension : More on stackoverflow.com
🌐 stackoverflow.com
VSCode-Python Extension Activation Failed
Type: Bug Environment Information Extension Version: 1.8.0 Python Extension Version: 2025.15.2025092201 Registered Environment Managers (3): - ms-python.python:system (Global) - ms-python.python:ve... More on github.com
🌐 github.com
3
September 28, 2025
python extension activation failed
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... More on github.com
🌐 github.com
2
October 8, 2024
Python Extension Activation Failures and Inconsistent Behavior
I have been encountering frequent issues with the Python extension in VS Code. Specifically, when attempting to run Python code, I experience various errors. The most common issues are: Extension activation failed: Extension activation failed, run the 'Developer: Toggle Developer Tools' command ... More on github.com
🌐 github.com
5
August 28, 2024
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 › 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
Find elsewhere
🌐
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’))
🌐
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 !

🌐
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 › 23131
Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information. · Issue #23131 · microsoft/vscode-python
March 26, 2024 - When I try to install the python language support extension on my VSCode version 1.87.2, i get the error 'Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.'
Author   datrine
🌐
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
🌐
Stack Overflow
stackoverflow.com › questions › 67250460 › unable-to-install-extension-ms-python-python-on-latest-macos
Unable to install extension 'ms-python.python' on latest MacOS - Stack Overflow
@Tianhui Li -You could try to find ...ions\ms-python.python-2020.12.xxx), and remove or delete the "Python" extension folder, then reopen VS Code and restart Install the "Python" extension....
🌐
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
🌐
GitHub
github.com › microsoft › vscode-python › issues › 22995
Python extension loading issue · Issue #22995 · microsoft/vscode-python
February 28, 2024 - Type: Bug Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information. Extension version: 2024.3.10581547 VS Code version: Code 1.86.2 (903b1e9d899...
Author   krrishna2001