inline plots in matplotlib.pyplot code example Example: how to enable matplotlib in notebook %matplotlib inline