def run(script_path, command_line, args, flag_options):
    'Run a script in a separate thread and start a server for the app.\n\n    This starts a blocking ioloop.\n\n    Parameters\n    ----------\n    script_path : str\n    command_line : str\n    args : [str]\n    flag_options : Dict[str, Any]\n    '
    _fix_sys_path(script_path)
    _fix_matplotlib_crash()
    _fix_tornado_crash()
    _fix_sys_argv(script_path, args)
    _fix_pydeck_mapbox_api_warning()
    _install_config_watchers(flag_options)
    _set_up_signal_handler()
    ioloop = tornado.ioloop.IOLoop.current()
    server = Server(ioloop, script_path, command_line)
    server.start(_on_server_start)
    server.add_preheated_report_session()
    ioloop.start()
Run a script in a separate thread and start a server for the app.

This starts a blocking ioloop.

Parameters
----------
script_path : str
command_line : str
args : [str]
flag_options : Dict[str, Any]
def run(script_path, command_line, args, flag_options):
    'Run a script in a separate thread and start a server for the app.\n\n    This starts a blocking ioloop.\n\n    Parameters\n    ----------\n    script_path : str\n    command_line : str\n    args : [str]\n    flag_options : Dict[str, Any]\n    '
    _fix_sys_path(script_path)
    _fix_matplotlib_crash()
    _fix_tornado_crash()
    _fix_sys_argv(script_path, args)
    _fix_pydeck_mapbox_api_warning()
    _install_config_watchers(flag_options)
    _set_up_signal_handler()
    ioloop = tornado.ioloop.IOLoop.current()
    server = Server(ioloop, script_path, command_line)
    server.start(_on_server_start)
    server.add_preheated_report_session()
    ioloop.start()