To make matplotlib plots show up inline in an IPython notebook, you can use the following code snippet:
The purpose of "%matplotlib inline" in Python is to display matplotlib plots within the Jupyter notebook.