improved result display in ipython notebook