Nov. 6, 2022, 12:32 p.m. | Reuven Lerner

Reuven Lerner www.youtube.com

How fast does your Python code run? Python's standard library comes with "timeit", with which you can check your code's speed. But Jupyter comes with the "%timeit" and "%%timeit" magic commands, which make it super-easy to find out how long something takes. In this video, I demonstrate these two magic commands, and show you how to compare code speed.

Jupyter notebooks for all of my videos are at https://github.com/reuven/youTube-notebooks.

And don't forget my free, weekly "Better developers" newsletter about Python …

check code easy jupyter library python speed standard video

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote