Magic Functions¶
- IPython has a set of predefined ‘magic functions’ that you can call with a command line style syntax
- There are two kinds of magics:
- Line Magic Prefix with %, and work much like OS command-line calls: they get as an argument the rest of the line, where arguments are passed without parentheses or quotes. Lines magics can return results and can be used in the right hand side of an assignment
- Cell Magic Prefix with %%, and they are functions that get as an argument not only the rest of the line, but also the lines below it in a separate argument.
%matplotlib¶
Output graph inline to frontend (Jupyter Notebook). Therefore is stored in the Notebook document
In [3]:
%matplotlib inline