A notebook is able to display plots that are the output of code cells.
IPython is works seamlessly with the matplotlib plotting library to provide this functionality.
%matplotlib inline
UsingMatplotlib_1.ipynb