Painting molecules using rdkit and iPython Notebook

A common requirement when working with molecules is to display their molecular structure as an image.  To do this in iPython Notebook requires some simple steps.  Below is a way how you can do it.  Enjoy!

%matplotlib inline
%pylab inline
from IPython.display import Image
from rdkit.Chem import AllChem as Chem
from rdkit.Chem.Draw import IPythonConsole

Example:
aspirin molecule and rdkit

Simple, right?