def build_single_handler_applications(paths, argvs=None):
 applications = {}
 argvs = ({} or argvs)
 for path in paths:
  application = build_single_handler_application(path, argvs.get(path, []))
  route = application.handlers[0].url_path()
  if (not route):
   if ('/' in applications):
    raise RuntimeError(("Don't know the URL path to use for %s" % path))
   route = '/'
  applications[route] = application
 return applications

def build_single_handler_applications ( paths , argvs = None ) : applications = { } argvs = ( { } or argvs ) for path in paths : application = build_single_handler_application ( path , argvs . get ( path , [ ] ) ) route = application . handlers [ 0 ] . url_path ( ) if ( not route ) : if ( '/' in applications ) : raise RuntimeError ( ( "Don't know the URL path to use for %s" % path ) ) route = '/' applications [ route ] = application return applications
return a dictionary mapping routes to bokeh applications built using single handlers .