Skip to content

Commit a5c3ad6

Browse files
committed
lazily import setup_handlers
1 parent cbbf442 commit a5c3ad6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/jupytercad_core/jupytercad_core/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
warnings.warn("Importing 'jupytercad_core' outside a proper installation.")
1010
__version__ = "dev"
1111

12-
from .handlers import setup_handlers
13-
14-
1512
def _jupyter_labextension_paths():
1613
return [{"src": "labextension", "dest": "@jupytercad/jupytercad-core"}]
1714

@@ -24,5 +21,6 @@ def _load_jupyter_server_extension(server_app):
2421
server_app: jupyterlab.labapp.LabApp
2522
JupyterLab application instance
2623
"""
24+
from .handlers import setup_handlers
2725
setup_handlers(server_app.web_app)
2826
server_app.log.info("Registered jupytercad server extension")

0 commit comments

Comments
 (0)