In IPython, you can time a single line with the %timeit magic.
In jupyter, you can time an entire cell with the %%timeit magic.
However, what I'd like is for each line of a jupyter cell (or an entire python script) to be timed, without using %timeit for each line individually. When I'm writing python code that I want to run fast, a functionality like this would be wonderful, so I could tell which lines are taking the most time.
You may wonder what I want this to do for for loops or if statements, but for now, just assume that it's a really long script full of simple statements.