Implementing more of IPython Notebook output mode