Cyvher
Cyvher

Reputation: 41

Restart Spyder IPython console in script

Currently I am doing some debugging on a script but when I run it the second time I get a false outcome. Now I want to restart the IPython console everytime when I run my script e.i. I want to include it in my script and do it automatically. I already tried to clear and restart my console but that doesn’t work. Has somebody an idea how I can solve this problem?

Thank you for your help!

Upvotes: 1

Views: 4401

Answers (1)

user6764549
user6764549

Reputation:

Do you want to clear out all variables from previous run when you re-run the script? If yes, you can change the preference settings in Spyder.

Go to Tools > Preferences > Run > Check the box that says "Clear all variables before execution."

enter image description here

Upvotes: 3

Related Questions