Incorporated IPython/viewer interaction code.