Home > front end >  Is it possible to enter the Python shell in vscode?
Is it possible to enter the Python shell in vscode?

Time:10-05

I'm trying to run a python shell file, like the one in IDLE, directly inside vscode so that I can run single lines/blocks of code interactively. Is this possible, and if so, how?

CodePudding user response:

Open the terminal run new terminal, and if python is added to your path, write python in the shell and enter and it opens the python shell.

CodePudding user response:

To the original question, yes you can interact with the console and run python files as if you were running them from the command line.

To your second query, VSCode has support for Jupyter notebook which is useful for running single lines of code. This may be what you're looking for

CodePudding user response:

You can install Python Extension to run python shell file in vscode. Python Extension. You can open new terminal and go to the file location path in terminal, then you can run python shell file

  • Related