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 16:31:17 -0500

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-26 17:36:07 -0500

updated 2019-07-26 17:38:46 -0500

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 16:31:17 -0500

Seen: 33 times

Last updated: Jul 26