04 - Jupyter and magic commands
Jupyter has a system of so-called « magic » commands with a minimalist and extensible control language.
References
There are two types of magic functions to distinguish:
- Line magics: These are commands preceded by a
%
character and whose arguments extend only to the end of the current line. For example,%matplotlib inline
allows displaying figures directly within the notebook. - Cell magics: These are commands preceded by the characters
%%
and will take into account the instructions of the entire cell.
Example :