@staticmethod
def _array_pretty_html(ar):
    """Return a nice HTML representation of the given numpy array."""
    ar_str = 'array with shape %s<br>\n' % str(ar.shape)
    ar_str += str(ar).replace(' [', '<br>\n[').replace(']\n ...', ']<br>\n...')
    return ar_str
