Python extension loads very slowly: unresponsive
See original GitHub issueEnvironment data
- VS Code version: 1.55.2
- Extension version (available under the Extensions sidebar): v2021.3.680753044
- OS and version: Mac 11.2.3
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.4
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
- Relevant/affected Python packages and their versions: N/A
- Relevant/affected Python-related VS Code extensions and their versions: maybe Jupyter, v2021.5.745244803
- Value of the
python.languageServersetting:"python.languageServer": "Pylance"
Expected behaviour
Very quick environment loading, no significant delays reported in the logs of the CPU profile (see below).
Actual behaviour
Such a long delay that I often see the pop up window saying that it is taking a long time to evaluate my environment.
Also, a log file is auto-generated showing that the python extension is often unresponsive. The log file is attached. ms-python.python-unresponsive.cpuprofile.txt
Steps to reproduce:
- Launch VS Code with the extension installed.
Note: I also have the following Python-adjacent extensions installed:
- Jupyter
- Pylance
- Python Preview
- Python Test Explorer
Logs
They are too large to paste, provided in file:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Python Extension loading issues : r/vscode - Reddit
Please have a look at this issue: Python extension loads very slowly: unresponsive. Try insiders version of the extension, ...
Read more >jupyter notebook takes forever to open and then pages ...
For me, I am experiencing serious slowness when working with Jupyter Notebook in Chrome. For instance, Edge browser is fine. Maybe I have...
Read more >Here's How to Make VSCode Faster
Check for slow-starting extensions To open the Command Palette, use the shortcut for your platform: Windows: Ctrl + Shift + P.
Read more >Python extension slow to load or doesn't load?
When I start a course and click on a Python code module, sometime it takes 5-10 minutes for the Python extension to load...
Read more >Changelog — Python 3.11.1 documentation
gh-98740: Fix internal error in the re module which in very rare circumstances ... means that standard extension modules are in the executable's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@lazarillo You can roll back to previous released version from the extension tab. It will give you a list of versions you can roll back to.
To safely install insiders (automatically), you could set this:
You can choose weekly or daily.
This step essentially does the same thing as installing from https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix . You can manually install it by using the VSIX file and “Install from VSIX” option that can be found here:
At any point to get off on the insiders, you can turn the above setting off. Or uninstall extension and install from the market place.
@lazarillo Please try insiders version of the extension, and see if it helps with this issue. You can always download and install latest insiders build form here https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix .
If you continue to have this issue with insiders version as well, then please share the contents of the
Output>Pythonpanel.