Dick Moores | 13 Jul 00:27
Picon

Re: Some starting-out IPython questions

On Sat, Jul 12, 2008 at 2:09 PM, Ryan James <rgjames <at> ucdavis.edu> wrote:
> On Sat, 2008-07-12 at 06:53 -0700, Dick Moores wrote:
>> 2. I see that timeit can be used this way:
>> In [22]: timeit x = 2; x**x
>> 10000000 loops, best of 3: 201 ns per loop
>>
>> But how to use it with, say,
>>
>> for x in range(1000):
>>    x**x
>>
>
> def f():
>        for x in range(1000):
>                x**x
> timeit f()

Ah. Nice. But another problem. I can't read the unit of time. See
attached image.

>> 3. What does
>>  ipython  -quick
>> do?
>>
>> I found this in my C:\Documents and Settings\Riley\_ipython\ipythonrc.ini:
>>
>> # quick 1 -> same as ipython -quick
>> quick 1
>>
>> I changed it to 0 to see if I could see the difference. I
>> couldn't--possibly because I didn't know what to look for. So, what
>> does    ipython -quick   do?
>>
>
> doesn't load any config files.  for a full list of command line options,
> you can check out the documentation:
> http://ipython.scipy.org/doc/manual/index.html#regular-options

Thanks for that link!

Dick
_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-user

Gmane