Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions jupyter_ai_jupyternaut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import warnings
warnings.warn("Importing 'jupyter_ai_jupyternaut' outside a proper installation.")
__version__ = "dev"
from .handlers import setup_handlers
from .extension_app import JupyternautExtension


def _jupyter_labextension_paths():
Expand All @@ -19,18 +19,6 @@ def _jupyter_labextension_paths():

def _jupyter_server_extension_points():
return [{
"module": "jupyter_ai_jupyternaut"
"module": "jupyter_ai_jupyternaut",
"app": JupyternautExtension
}]


def _load_jupyter_server_extension(server_app):
"""Registers the API handler to receive HTTP requests from the frontend extension.

Parameters
----------
server_app: jupyterlab.labapp.LabApp
JupyterLab application instance
"""
setup_handlers(server_app.web_app)
name = "jupyter_ai_jupyternaut"
server_app.log.info(f"Registered {name} server extension")
3 changes: 3 additions & 0 deletions jupyter_ai_jupyternaut/config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .config_models import *
from .config_manager import ConfigManager
from .config_rest_api import ConfigRestAPI
Loading
Loading