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.

Cannot activate the 'Python' extension because it depends on the 'Jupyter' extension, which is not loaded. Would you like to reload the window to load the extension?

See original GitHub issue

Environment data

  • VS Code version: 1.54.1
  • Extension version (available under the Extensions sidebar): v2021.3.680753044
  • OS and version:
    • Local: Darwin arm64 20.3.0 (Mac M1)
    • Remote: Ubuntu 18.04.5 LTS
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | Docker version 20.10.5, build 55c4c88
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: MS Jupyter v2021.5.702919634
  • Value of the python.languageServer setting: Jedi

Expected behaviour

When connecting remotely, MS Python extension should start

Actual behaviour

When connecting remotely, MS Python extension does not start and gives the error: Cannot activate the 'Python' extension because it depends on the 'Jupyter' extension, which is not loaded. Would you like to reload the window to load the extension?

  • Reloading the window does not fix the issue.

Steps to reproduce:

  • Docker Engine
  • I don’t use .devcontainer files or other VS Code special files except ‘launch.json’
  • Uninstalling and reinstalling MS Python extension does not fix the issue.
  • Deleting the extension following file and reinstalling the extensions fix the issue for the current session: ~/vscode-server/extensions/ms-python.python-2021.3.680753044 ~/vscode-server/extensions/ms-toolsai.jupyter-2021.5.702919634
  • When I restart the server, the issue arises again immediately upon connecting with VS Code Remote-SSH connection

Thanks for you help!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

59reactions
jturnercodecommented, May 11, 2021

After python extension update which now comes with pylance as default, i got the same error. uninstalled Jupyter, pylance, and python extensions in vscode. then re-installed and everything started working again

6reactions
navneethccommented, May 11, 2021

Thank you, @jturnercode . Can confirm the same happened after updating to 1.56.1 of VS Code a few minutes ago.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After updating VSCode to 1.56.1, I get error: "Cannot activate ...
Reference: Cannot activate the 'Python' extension because it depends on the 'Jupyter' extension, which is not loaded. Would you like to reload ......
Read more >
Python Extension not working : r/vscode - Reddit
When I attempt to install the python extension it gives the following error: "Cannot activate the 'Pylance' extension because it depends on ...
Read more >
Introducing the Jupyter Extension for VS Code - Python
We're excited to announce that we're releasing the new Jupyter extension for Visual Studio Code today! The Jupyter extension is the latest ...
Read more >
Extensions — JupyterLab 3.6.0b0 documentation
The jupyter labextension command enables you to install or uninstall source extensions from npm, list all installed extensions, or disable any extension. See ......
Read more >
User-Guide - Jupyter integration - Ploomber documentation
Activating the Jupyter extension; Custom Jupyter pipeline loading ... If you want to configure JuptyerLab to open .py files as notebooks with a...
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