Jupyter · IPython magics and tips

Time a statement

Run a statement many times and report the average. %%timeit does the same for a whole cell.

%timeit sum(range(1000))

Official Jupyter documentation

More ipython magics and tips commands

All ipython magics and tips commands · Jupyter cheatsheet

Was this page helpful?