Fix calls to publish_display_data for newer versions of IPython

I left the related comment below in the thread...