-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
python is not running #228081
Comments
I'm having the same issue and mine also started on August 9th, 2024. I was able to solve the reactivating terminals loop by using Python: Clear Cache and Reload Window, but now VSCode won't connect to the kernel at all. My Jupyter and regular Python files won't execute, and I know the interpreter works just fine because I can open IDLE and run code with no issue. I've tried reinstalling the kernel, VSCode, and every relevant extension within VSCode and nothing has resolved the issue so far. VSCode clearly sees the global interpreter, but it's not able to execute the code for some reason. |
any solutions? |
My current solution has been to uninstall VSCode and switch to PyCharm. I figure it's a Microsoft issue, and I don't want to not code while I wait for them to figure out a solution. |
Update: VSCode on my work computer is running fine, and that's after the 1.93 update. Python 3.12.3 still works there, whereas both it and 3.12.6 both don't connect on my home computer. |
what changed mine still isnt working with python and i noticed that python terminal is also not opening in the visual studio. |
Have you tried opening IDLE to confirm the interpreter still works? I did on mine, and it did. |
IDLE is working |
PyCharm works on mine, so the interpreter is still functional. Is there any other testing we can do to the extensions? I tried disabling or reinstalling them, but that didn't fix anything. |
i tried reinstalling everthing that includes python,visual studio,extensions but when i try to run python in visual studios,even F5 doesnt run it. |
Same with me. I'm stuck wondering why it still runs fine on my work computer but not my home computer. They're both up to date Windows systems. |
I deleted visual studio also its hidden file and then restarted the laptop,then dowloaded visual studio fresh and now it works |
Interesting. Where's the hidden file? |
there are two one code file and one .vscode file you can refer to any deep removal of visual studio files in youtube |
This doesn't works for me :( |
Thanks for filing issue @GauravNegi2 @ShampooDeng Does updating to latest vscode and latest python extension (2024.14.1) work? Make sure to restart and run "Python Clear Cache and Reload" via command palette (control/cmd + shift + enter) |
No, it doesn't work. I updated to vscode 1.93.1 and python extension 2024.14.1, and run "Python Clear Cache and Reload window)". Still, there is no python environment indicator at the bottom stattus line, no autocompletion, and selecting other python interpreter via "Select Interpreter" doesn't do anything. When it comes to Jupyter files and python files execution, my symptoms are the same as dshammers has described. |
I wanted to add that deleting both the Code and .vscode files for me also did not resolve the issue. |
I think I fixed it by changing the |
That seems to have fixed it for me, too. Did the update to vscode: 1.93.1 mess up the kernel detection? |
Sorry folks for late update, but glad you guys found a workaround via switching locator to js. |
I'm not. I don't use conda. |
I'm on |
Type: Performance Issue
after a loop of reactivating terminal problem when it got fixed then my python code runner stopped working and shift+enter is also not working for the same
VS Code version: Code 1.93.0 (4849ca9, 2024-09-04T13:02:38.431Z)
OS version: Windows_NT x64 10.0.19045
Modes:
System Info
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Process Info
Workspace Info
Extensions (18)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: