Magics are special instructions to the IPython interpreter that perform specialized actions. There are two types of magics:
We are already familiar with one of the magic command, that is,
%pylab inline. This particular magic does two of the following things: it imports
matplotlib, and sets up the notebook for inline plots. To see one of the other options, change the cell to
Run this cell and then run the cell that produces the plot again. Instead of drawing the graph inline, IPython will now open a new window with the plot as shown in the following screenshot:
This window is ...