Jupyter cheatsheet
Jupyter: IPython magics and tips
8 common Jupyter tasks.
Time a statement
Run a statement many times and report the average. %%timeit does the same for a whole cell.
%timeit sum(range(1000))
Reload edited modules automatically
Pick up changes to imported .py files without restarting the kernel.
%load_ext autoreload
%autoreload 2
Display rich output
Show several values in one cell, such as DataFrames and images.
from IPython.display import display
display(df.head(), df.describe())