Skip to content

Commit 6f32104

Browse files
committed
Support legacy notebook launcher
1 parent 02e2cbd commit 6f32104

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

jupyterlab_pullrequests/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ def _load_jupyter_server_extension(server_app):
1919
from .base import PRConfig
2020
from .handlers import setup_handlers
2121

22+
log = server_app.log
2223
config = PRConfig(config=server_app.config)
23-
setup_handlers(server_app.web_app, config)
24+
setup_handlers(server_app, config)
2425
server_app.log.info("Registered jupyterlab_pullrequests extension")
26+
27+
28+
# for legacy launching with notebok (e.g. Binder)
29+
_jupyter_server_extension_paths = _jupyter_server_extension_points
30+
load_jupyter_server_extension = _load_jupyter_server_extension

0 commit comments

Comments
 (0)