Ask Your Question
0

Is there any way to have a cell tell you how long it took to run in the Jupyter notebook?

asked 2019-07-26 23:31:17 +0100

sum8tion gravatar image

The question is basically all in the title. I'm working on a project in the Jupyter and notebook, and I have some cells that have longer run times. Sometimes I let these run, and come back to check on them later, however it would be nice to know exactly what duration those cells ran for.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2019-07-27 00:36:07 +0100

updated 2019-07-27 00:38:46 +0100

You can put %%time as a line at the start of the cell. Does that do what you want?

See also https://stackoverflow.com/questions/3... and https://nbviewer.jupyter.org/github/i...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-07-26 23:31:17 +0100

Seen: 475 times

Last updated: Jul 27 '19