IPython extends Python with a set of commands called magics. These are special functions whose names start with a %
that are recognized by the IPython shell. Magics whose name begins with just one %
take as argument the rest of the line and are called line magics. Magics that begin with a double percent sign %%
take a multi-line argument and are called cell magics.