Modified _repr_html_ method to work in IPython Qtconsole as well.