Built-in Magic Command timeit, IPython explained in 60 seconds

Опубликовано: 04 Ноябрь 2024
на канале: Ralph Turchiano
179
like

A great built-in command for measuring code run time:
%timeit (code), %%timeit (Code in a cell), -r = runs, -n=loops
I hope you find this built in command fun ;-)
#timeit #magiccommands #pythoncode

Documentation of all Magic Commands:
https://ipython.readthedocs.io/en/sta...