On my work laptop (with a VPN connectoin), the python extension and interactive window/kernel are starting really slow, after restarting the kernel or VSCode a few times. The download speed of the internet connection is 250mbps and the upload speed 25mbps (that's not the problem).
After I restart my laptop, everything runs fast (kernel is started in a few seconds). Restarting VSCode doesn't have the same effect.
starting put slow execution of code lines
I don't know were to look to find te problem.
Does anyone know what the problem might be? If you need more information, i'd like to provide it!
When I reopened VS Code and immediately opened "Interactive", I also encountered the same problem, sometimes it could not be opened, sometimes it was very slow.
Reason: In VS Code, Since the "Interactive" function is provided by the extension "python", it needs to load the extension "python", then start this function and execute the code.
Solution:
It is recommended that you create or open a python file (
.pyfile) after opening VS Code, wait for the extension and language service to load, and then open and use the "Interactive" function. In addition, in order to shorten the loading time, please disable VS Code extensions that you don't need to use and ensure a good network.If all the required items are loaded but the "Interactive" window is still open and running slowly, please try to close other applications on the computer and reload or restart VSCode.
Github link: "Python extension loading" super slow.