code: def create_bokeh_server(io_loop, files, argvs, host, port):
      '''Start bokeh server with applications paths'''
      from bokeh.server.server import Server
      from bokeh.command.util import build_single_handler_applications
  
      # Turn file paths into bokeh apps
      apps = build_single_handler_applications(files, argvs)
  
      # kwargs lifted from bokeh serve call to Server, with created io_loop
      kwargs = {
          'io_loop':io_loop,
          'generate_session_ids':True,
          'redirect_root':True,
          'use_x_headers':False,
          'secret_key':None,
          'num_procs':1,
          'host': host,
          'sign_sessions':False,
          'develop':False,
          'port':port,
          'use_index':True
      }
      server = Server(apps,**kwargs)
  
      return servef create_bokeh_server(io_loop, files, argvs, host, port):
      '''Start bokeh server with applications paths'''
      from bokeh.server.server import Server
      from bokeh.command.util import build_single_handler_applications
  
      # Turn file paths into bokeh apps
      apps = build_single_handler_applications(files, argvs)
  
      # kwargs lifted from bokeh serve call to Server, with created io_loop
      kwargs = {
          'io_loop':io_loop,
          'generate_session_ids':True,
          'redirect_root':True,
          'use_x_headers':False,
          'secret_key':None,
          'num_procs':1,
          'host': host,
          'sign_sessions':False,
          'develop':False,
          'port':port,
          'use_index':True
      }
      server = Server(apps,**kwargs)
  
      return server
docs: Start bokeh server with applications paths