This seems like a very simple question but I cannot find an answer to it anywhere on Stack Overflow.
I am running a script where some lines take a lot of time. If I stop a function later on in the script by pressing "Ctrl + C", VSC quits Python. So, I have to run those lines again, which is a pain.
To illustrate, let's say I ran 20 lines and have the variables associated with those lines in memory. I start running line 21, and would like to stop that line from running yet I would like to keep Python open so that I have the variables from the first 20 lines in memory.
I am wondering if there is a way to stop a function but not quit Python in Visual Studio Code. Thank you!