We can all agree that IPython's %timeit magic is great for interactive use but what if you need to use the timeit output?

If you are using the magic command that means that you will have to manually assign the result to a variable. However the %timeit magic makes use of the timeit module to do the timing and you can do the same to capture the raw data.

The HTML table library can be found at this github repository.