def imview_async(*args, **kwargs):
 if ('figure' in kwargs):
  raise ValueError('passing a figure argument not supported')
 def fork_image_viewer():
  f = plt.figure()
  kwargs['figure'] = f
  imview(*args, **kwargs)
  if ('window_title' in kwargs):
   f.set_window_title(kwargs['window_title'])
  plt.show()
 p = Process(None, fork_image_viewer)
 p.start()
 return p

def imview_async ( * args , ** kwargs ) : if ( 'figure' in kwargs ) : raise ValueError ( 'passing a figure argument not supported' ) def fork_image_viewer ( ) : f = plt . figure ( ) kwargs [ 'figure' ] = f imview ( * args , ** kwargs ) if ( 'window_title' in kwargs ) : f . set_window_title ( kwargs [ 'window_title' ] ) plt . show ( ) p = Process ( None , fork_image_viewer ) p . start ( ) return p
a version of imview that forks a separate process and immediately shows the image .