[IPython-user] Passing arguments to run command

Gökhan SEVER gokhansever@gmail....
Mon May 11 22:02:11 CDT 2009


Another question to ask:

Any idea how to make a script visible to run command independent of the
directory. Like putting scripts in /bin folder for system to look for.

I define an alias in pythonrc file but for some reason it only helps me to
call the script without run command. Unfortunately, my namespace contents
can't get updated in this fashion.

Any ideas?

Gökhan


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

> 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/7e7b63bf/attachment.html 


More information about the IPython-user mailing list