"Spyder" Undo "Remove all Variables"

Question:

I am using the Variable explorer in Spyder and clicked the “Remove all Variables” button, How do I undo this and restore all variables.

Regards

Asked By: Simon Tuohy

||

Answers:

(Spyder maintainer here) There’s no undo for that operation. Remove all variables is equivalent to running del my_var for all variables present in the IPython console.

Answered By: Carlos Cordoba

Restart your system and Spyder should be able to set up the user variables for you to run python scripts again. I did do “Remove all variables” and then restarted my system. In my case, I didn’t loose anything significant. Hope that helps.

Answered By: Skadoosh

Re-running your code should make all variables reappear in the variable explorer. That being said, I experienced the same issue: none of my variables would show up when I re-ran the code. In my case I had to remove my variables from the functions and use them separately. Then they loaded into the variable explorer.

Answered By: Luke Abram
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.