I\'m using visual studio code with DonJayamanne python extension. It\'s working fine but I want to have an interactive session just like the one in Matlab, where after code exec
The following line will solve your problem.
"python.terminal.launchArgs": ["-c","\"from IPython import embed; embed()\""]
I added the following lines into user setting file, then it works. Select some lines of python code, then right-click and select Run selected code in python terminal
Solution 1: Will start iPython terminal
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K ipython"],
Solution 2: Will start a terminal like "python -i"
"python.terminal.launchArgs": ["-i"],
I'm the author of the extension. There are two options:
Use the integrated terminal window (I guess you already knew this)
Launch the terminal window and type in python
.
Every statement executed in the REPL is within the same session.
Next version will add support for Jupyter.
Please have a look here for some samples of what is yet to come: