Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view how much time each cell took to run in a Jupyter notebook?

After I select run all, run all above, or run all below in a Jupyter notebook, how can I view how much time each cell took to run?

My question is different from Simple way to measure cell execution time in ipython notebook as I want the running times for all cells, not just one. I.e., if the notebook contains 10 cells I want 10 running times.

like image 416
Franck Dernoncourt Avatar asked Jun 03 '17 18:06

Franck Dernoncourt


2 Answers

Install and enable ExecuteTime nbextension: "Display when each cell has been executed and how long it took".

Installation and configuration details are here.

like image 82
stason Avatar answered Nov 20 '22 08:11

stason


I believe only by putting magic function %%time

like image 23
vishes_shell Avatar answered Nov 20 '22 08:11

vishes_shell