04 - Jupyter and magic commands
![](/data-challenge/images/magic-wand.jpg)
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 :
![](/data-challenge/images/02-magic/01-magic.png)