def publish_display_data(data, source='bokeh'):
 import IPython.core.displaypub as displaypub
 try:
  displaypub.publish_display_data(source, data)
 except TypeError:
  displaypub.publish_display_data(data)

def publish_display_data ( data , source = 'bokeh' ) : import IPython . core . displaypub as displaypub try : displaypub . publish_display_data ( source , data ) except TypeError : displaypub . publish_display_data ( data )
compatibility wrapper for ipython publish_display_data later versions of ipython remove the source argument .