I use VsCode with Python and it currently won't let me run any code - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: I use VsCode with Python and it currently won't let me run any code (/thread-38223.html) |
I use VsCode with Python and it currently won't let me run any code - NordicMonkey - Sep-18-2022 I'm currently starting with Python, I use VsCode; Hadn't had any problems until yesterday. Basically the problem is that I can execute individual lines of code (with "shift+Enter") and they work, but the moment I decide to execute all at once, I get an error On the other hand, if I run all the code first, with the button that appears in the upper right corner of VsCode, the code runs fine; but if I try to execute individual lines of code (with "shift+Enter"), they work for me too, but when I re-execute all the code, I get the error The sequence of how I do things goes like this:
Again, I insist that I would be infinitely grateful if you help me solve this problem that keeps my hands tied RE: I use VsCode with Python and it currently won't let me run any code - deanhystad - Sep-18-2022 Turn it off and back on again. I have this happen occasionally with VSCode and a restart always clears it up for me, If that doesn't fix things, look at the dropdown next to the arrow. What kind of run options do you have? Which one is selectected? RE: I use VsCode with Python and it currently won't let me run any code - Larz60+ - Sep-18-2022 Also, read this post: https://python-forum.io/thread-12237.html |