How to run the selection in VSCode in the active (IPython) terminal instead of creating a new terminal every time?

Question:

I would like to execute the selection in VSCode (Shift + Enter) in my current (ipython) terminal. Instead the shortcut creates a new terminal every time and don’t run the selection in the active (ipython) terminal. Which setting do I have to change to adjust this?

Asked By: lmixa

||

Answers:

I have solved it myself: Adding this

"python.terminal.launchArgs": ["m","IPython","--no-autoindent"]

to the JSON-file will do the job as mentioned in the question from the second comment. I had a JSON-file error which hasn’t been marked. That way the code snippet wasn’t executed. Using an online JSON validator helped me to find that error.

Answered By: lmixa