I would like to get the time spent executing the cell, in addition to the original output from the cell.
To this end, I tried %%timeit -r1 -n1 , but did not find a variable defined inside the cell.
%%time works for a cell that contains only 1 instruction.
In[1]: %%time 1 CPU times: user 4 ยตs, sys: 0 ns, total: 4 ยตs Wall time: 5.96 ยตs Out[1]: 1 In[2]: %%time
What is the best way to do this?
Update
I have been using Run Time at Nbextension for quite some time now. It's great.
python ipython ipython-notebook jupyter
colinfang Sep 14 '15 at 13:15 2015-09-14 13:15
source share