How can you run a python file from a VScode extension?

Viewed 81

I have been developing a VScode extension but haven't been able to run other python files and get the output data from these files. How do you run the python files from the extension?

1 Answers

You need to first setup your Python development environment. Specifically, this tutorial requires:

  1. VS Code
  2. VS Code Python extension
  3. Python 3

From within VS Code, select a Python 3 interpreter by opening the Command Palette (Ctrl+Shift+P), start typing the Python: Select Interpreter command to search.

You could refer to the document of vscode for more details.

Related