(nb_server_app)
Called when the Jupyter server extension is loaded.

    Args:
        nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
Called when the Jupyter server extension is loaded.
Called when the Jupyter server extension is loaded .
def load_jupyter_server_extension(nb_server_app):
    """
    Called when the Jupyter server extension is loaded.

    Args:
        nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
    """
    print("SPARKMONITOR_SERVER: Loading Server Extension")
    web_app = nb_server_app.web_app
    host_pattern = ".*$"
    route_pattern = url_path_join(web_app.settings["base_url"], proxy_root + ".*")
    web_app.add_handlers(host_pattern, [(route_pattern, SparkMonitorHandler)])
def load_jupyter_server_extension ( nb_server_app ) : print ( "SPARKMONITOR_SERVER: Loading Server Extension" ) web_app = nb_server_app . web_app host_pattern = ".*$" route_pattern = url_path_join ( web_app . settings [ "base_url" ] , proxy_root + ".*" ) web_app . add_handlers ( host_pattern , [ ( route_pattern , SparkMonitorHandler ) ] )