About 50 results
Open links in new tab
  1. How to execute Python code from within Visual Studio Code

    May 1, 2015 · If you install Python language extension for VSCode, it also installs Jupyter and Pylance by default, which lets you run Python code in interactive manner. All you have to do is …

  2. VSCode 'Run Python file' does nothing - Stack Overflow

    Jan 3, 2023 · When I press the 'play' button to run my python code, nothing happens. This is true also with debugging. There is no activity in either the built-in cmd or powershell terminals, but …

  3. python - How to run a few selected lines of code in vscode?

    Dec 21, 2019 · 11 How do I execute run Shift + Enter only the selection of highlighted lines of code in vscode? When hitting Shift + Enter there is the following error: Unable to initialize …

  4. Visual Studio Code not running Python - Stack Overflow

    0 I needed to do the equivalent of blowing in the NES cartridge... IN VSCode, next to the "Run" icon, there is a drop down arrow. Hit the dropdown arrow and select "Run Python File" After …

  5. vscode python - how do I run only selected lines of my code in vs …

    Dec 13, 2023 · 1 In vscode, if you hit Shift+Enter, it will run the highlighted code (from your main editor window) in a python terminal.

  6. The Run button in VS Code don't show up [Python]

    Apr 30, 2021 · I recently create an app using Python in VS Code. I made some modifications and now the Run button in the top left is gone. I can only run the app with the debug mode. I …

  7. How to set environment variables in python when using vscode

    Dec 5, 2023 · to settings.json makes no difference. However, if I run as Debug Python File, then the environment variables are loaded correctly (even without the settings.json edit). If I run the …

  8. Get the Python console in a VScode - Stack Overflow

    Jan 25, 2023 · Please use the python interactive. There are two ways in vscode, one is terminal and the other is window. Right-click and select Run Current File in Interactive Window to open …

  9. python - VSCode -- How can I change the run configuration

    Nov 14, 2022 · I am working with a single python file. The first time I launched it, VSCode prompted me to choose a run configuration, and I accidentally chose Module instead of Python …

  10. How to run python in Visual Studio Code as a main module

    Uses the Command Variable VSCode Extension to set the module name automatically. This way regardless of whether you run the file directly or as an import, it behaves the same way.