I’m writing code in Python and using both the default IDLE and Visual Studio Code as my development environments. I was wondering if there is a interactive shell like the one in IDLE in vscode, where I can run code and then enter the variable name to find out its value. I’ve been having trouble finding a shell-like feature in VSCode, similar to IDLE’s shell. Is there any way to use IDLE’s shell functionality within VSCode?
I tried using the terminal to set up a simple interactive interpreter, but I encountered an error. Is the terminal not suitable for using as an interactive interpreter?
2
Answers
Open a new terminal in vscode
Ctrl + Shift + `
Run the
python
commandThen you have an interactive python shell
Note: keybindings might differ on mac.
Python Interactive window is a nice mix between Jupyter and IDLE