title: Spyder + IPython keep accumulating memory with no way to free it
body: <p>I am having troubles freeing the memory that my script uses when running it with Spyder 3.3.6 + IPython console. Everytime I run my script about 300 Mb get used and I cannot find a way to free them except restarting the console. If I do not close and restart the console every few runs, my whole system eventually freezes.</p>
  
  <p>I tried %reset, gc.collect(), and all the clear variables commands I could find on Sypder, with no use.
  Running the same exact script with Pycharm, I do observe the memory getting allocated, but it is freed as soon as the script is done running.</p>
  
  <p>Downgrading the IPython console to version 5.8.0 helped speeding up significantly the reboot, but nonetheless the memory is not freed. Rebooting each time is quite annoying as it is slow and I always need to keep an eye on my system's memory.</p>
  
  <p>Any idea what could cause this and how to solve it?
  I am using Python 3.7 on Windows 10.</p>
  
  <p>Thank you.</p>