[IPython-dev] Feature request/how?

Charles Moad cmoad at indiana.edu
Mon Feb 21 15:17:09 EST 2005

	Thanks for the pointer.  I am still fuzzy on how I would create a magic 
function using this, since I need to run the parameter_s arg of the 
magic function in the current context.  timing/timings takes the 
actually function and args, not a string.


Fernando Perez wrote:
> Charles Moad wrote:
>> I would like a new magic function, "time".  I am not quite ipython 
>> savvy enough yet to do this correctly I think.  Here is what I forsee.
>> In [1]: %time blah() # for example
>> Out[1]: 'Blah return value'
>>    Call took 0.432 seconds
> from IPython.genutils import timing,timings
> look at their docstrings.
> Cheers,
> f

More information about the IPython-dev mailing list