-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Takes too long to discover python environments for 100+ envs #21010
Comments
Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can. |
Do you have Jupyter extension installed? If so, disable it, reload, and open a Python file and wait for extension to activate. Then try running |
@karrtikr : Version of Jupyter notebook that i disabled: v2023.3.1000892223 1 wk ago |
Closing in favor of microsoft/vscode-jupyter#12719, feel free to upvote that to raise priority. |
@karrtikr , do not triggering env discovery doesn't solve the problem. Looking forward to it! |
This sounds like a good practical solution. Yes, I just updated my installation and I can confirm that it is much more reasonable now. Thank you for this! I consider that this can be closed now. |
Type: Bug
Behaviour
It takes about 2.5 seconds (on my machine) to run commands to discover python interpreter info.
Here is an example of the code being run by VScode descovery system:
Expected vs. Actual
Since I have about 100 environments (some of them actually quite old and have python 2.7) - it takes about 70 seconds (!) to finish that scanning.
Until it finishes - I can't really do much with my Python kernel.
I would expect it to do this in parallel (I have 36 cores at that machine - so it would take about 2 seconds to complete scanning/refreshing python kernels) - which is reasonable.
Steps to reproduce:
conda
NOTE: The log was too big (bigger than 65536 characters) - so I had to truncate it - I left only beginning of it and quite a long tail.
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.6.0
VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:21:11.906Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes
Remote OS version: Linux x64 3.10.0-1062.el7.x86_64
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: