logo

... jupyter lab: time magic



Notes

Remember that typically a jupyter magic has either a single % or two %%. If there is a single percentage symbol, like in %time then it will be applied as if it was a one-liner. While if there are two, like in %%timeit then the magic will look in the entire cell.

Remember that %timeit is more accurate but takes much longer because it will run the code many times as opposed to the %time method which will only run it once.

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.