PyQT widget skeleton,
IOPUB example from ipython repositories.