Added smart initial zooming and IPython widget resizing