title: How to save variables in Variable Explorer of Spyder IDE
body: <p>I am using Spyder IDE. I want to save the variables in the Variable Explorer of Spyder to a csv/excel/pdf. I am automating a task. Hence I want to save the results every time I run the script. My variable explorer looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/nWYO1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nWYO1.png" alt="enter image description here"></a></p>
  
  <p>Or is there a way I can write all the variables to a csv or pdf?</p>