Formats numpy matrices in an IPython Notebook