File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,12 @@ class LabApp(ExtensionApp, ExtensionAppJinjaMixin):
506
506
# The config.
507
507
c = None
508
508
509
+ @staticmethod
510
+ def _jupyter_server_extension_paths ():
511
+ return [{
512
+ 'module' : 'jupyterlab'
513
+ }]
514
+
509
515
def initialize_templates (self ):
510
516
if self .c == None :
511
517
self .c = load_config (self )
@@ -554,10 +560,10 @@ def initialize_handlers(self):
554
560
self .c = load_config (self )
555
561
self .static_paths = [self .c .static_dir ]
556
562
self .template_paths = [self .c .templates_dir ]
557
- if not self . serverapp . jpserver_extensions . get ( 'jupyterlab' , False ):
558
- msg = 'JupyterLab server extension not enabled, manually loading...'
559
- self .log .warning (msg )
560
- load_jupyter_server_extension (self )
563
+ # TODO(@echarles) Discuss with @Zsailer https://github.com/jupyter/jupyter_server/pull/180
564
+ # if not self.serverapp.jpserver_extensions.get('jupyterlab', False):
565
+ self .log .warning ('JupyterLab server extension not enabled, manually loading...' )
566
+ load_jupyter_server_extension (self )
561
567
562
568
#-----------------------------------------------------------------------------
563
569
# Main entry point
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ def run(self):
143
143
'jinja2>=2.10' ,
144
144
'nbclassic@ git+https://github.com/datalayer-contrib/jupyter-notebook-classic@jupyterlab' ,
145
145
'jupyterlab_server@ git+https://github.com/datalayer-contrib/jupyterlab-server@jupyter_server' ,
146
- 'jupyter_server@ git+https://github.com/datalayer-contrib/jupyter-server.git@extension_handlers ' ,
146
+ 'jupyter_server@ git+https://github.com/datalayer-contrib/jupyter-server.git@discover-extensionapp-config ' ,
147
147
]
148
148
149
149
setup_args ['extras_require' ] = {
You can’t perform that action at this time.
0 commit comments