"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
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.
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.
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.
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
(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.
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.
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.