[IPython-user] Passing arguments to run command

Ville M. Vainio vivainio@gmail....
Mon May 11 14:21:07 CDT 2009


On Mon, May 11, 2009 at 8:24 PM, Gökhan SEVER <gokhansever@gmail.com> wrote:

> In [1]: files = !ls test*
>
> In [2]: for i in files:
>    ....:     run myScripy.py $i

Or run use

%run $files.s

This works because files is a string list,

http://ipython.scipy.org/moin/Cookbook/StringListProcessing

-- 
Ville M. Vainio
http://tinyurl.com/vainio


More information about the IPython-user mailing list