Jupyter runtime profiling

So, I installed jupyter notebook via anaconda and I am working on python 3 core.

I am trying to do time profiling with magic command %time

as shown here The problem is that it only prints Wall Time not CPU time

with %time

or %%time

without help

  • %time

    prints wall time for first line only
  • %%time

    prints wall time for solid cell

I'm not sure if there is any specified configuration for printing cpu time

EDIT

To clarify usage %%time

, two metrics should be printed for the entire cell

  • Metric 1 : CPU time
  • Metric 2 : time on the wall

My problem is that I only get wall time and not cpu time.

You can check this link on the expected output for%%time

+3


source to share


1 answer


So it seems like my problem was in the environment itself.



Switching from Windows to Ubuntu really helped me print cpu time.

+4


source







All Articles