[IPython-user] Food for thought on python and interactive work

Ville M. Vainio vivainio@gmail....
Tue Jun 3 08:57:27 CDT 2008


On Tue, Jun 3, 2008 at 1:54 PM, Robin <robince@gmail.com> wrote:

> While on the topic of interactive work with IPython I thought I'd add
> that a feature I would love to see would be an easy way to do the
> MATLAB equivalent of 'save workspace'; that is easily with one quick
> command save all the user defined local variables.

Try a macro like this:

vars = %who_ls

for v in vars:
  try:
     %store $v
  except:
    pass

> Actually it would also be handy to get a list of user defined objects
> - like whos but without all the pollution from builtins (I use
> numpy/scipy) to help with this.

-pylab should not pollute the whos listing anymore.

-- 
Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'


More information about the IPython-user mailing list