From the IPython docs, Built-in magic commands:
Note To Jupyter users: Magics are specific to and provided by the IPython kernel. Whether Magics are available on a kernel is a decision that is made by the kernel developer on a per-kernel basis. To work properly, Magics must use a syntax element which is not valid in the underlying language. For example, the IPython kernel uses the %
syntax element for Magics as %
is not a valid unary operator in Python. However, %
might have meaning in other languages.
(By the way, %load_ext
is covered in brief on the same page.)
Related questions: