title: Code to clear console and variables in Spyder
body: <p>Tried many suggestions to <strong>clear console and variables</strong> in Spyder using code not CTRL+L but they do not work.</p>
  
  <p>wondering any effective suggestion what the code can be used for clearing Spyder console and variables.</p>
  
  <p>using <code>get_ipython().magic('reset -sf')</code> will make the variable explorer not updated.</p>