[IPython-user] Passing arguments to run command

Gökhan SEVER gokhansever@gmail....
Mon May 11 21:44:32 CDT 2009


Interesting.

On my ipython run script $files.s runs only one script not the consequent
arguments given with $files.s

Gökhan


On Mon, May 11, 2009 at 2:50 PM, Jeremy Conlin <jeremit0@gmail.com> wrote:

>
>
> On Mon, May 11, 2009 at 3:21 PM, Ville M. Vainio <vivainio@gmail.com>wrote:
>
>> 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 does the trick.
> Thanks,
> Jeremy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20090511/32634f6d/attachment-0001.html 


More information about the IPython-user mailing list