src/jupyter_tabnine/__init__.py
def load_jupyter_server_extension(nb_server_app):
    """
    Called when the extension is loaded.

    Args:
        nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
    """
    web_app = nb_server_app.web_app
    host_pattern = ".*$"
    route_pattern = ujoin(web_app.settings["base_url"], "/tabnine")
    tabnine = Tabnine()
    web_app.add_handlers(
        host_pattern, [(route_pattern, TabnineHandler, {"tabnine": tabnine})]
    )

    Called when the extension is loaded.

    Args:
        nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
    
Called when the extension is loaded.
Called when the extension is loaded .
def load_jupyter_server_extension(nb_server_app):
    web_app = nb_server_app.web_app
    host_pattern = ".*$"
    route_pattern = ujoin(web_app.settings["base_url"], "/tabnine")
    tabnine = Tabnine()
    web_app.add_handlers(
        host_pattern, [(route_pattern, TabnineHandler, {"tabnine": tabnine})]
    )
def load_jupyter_server_extension ( nb_server_app ) : web_app = nb_server_app . web_app host_pattern = ".*$" route_pattern = ujoin ( web_app . settings [ "base_url" ] , "/tabnine" ) tabnine = Tabnine ( ) web_app . add_handlers ( host_pattern , [ ( route_pattern , TabnineHandler , { "tabnine" : tabnine } ) ] )
Called when the extension is loaded.
Called when the extension is loaded .
"""
    Called when the extension is loaded.

    Args:
        nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
    """
nb_server_app
handle to the Notebook webserver instance.
handle to the Notebook webserver instance .