@@ -348,11 +348,11 @@ def _jupyter_labextension_paths():
348
348
}]
349
349
350
350
351
- def _jupyter_server_extension_paths ():
351
+ def _jupyter_server_extension_points ():
352
352
return [{" module" : " jlab_ext_example" }]
353
353
354
354
355
- def load_jupyter_server_extension (lab_app ):
355
+ def _load_jupyter_server_extension (lab_app ):
356
356
" " " Registers the API handler to receive HTTP requests from the frontend extension.
357
357
Parameters
358
358
----------
@@ -368,8 +368,8 @@ def load_jupyter_server_extension(lab_app):
368
368
369
369
` ` `
370
370
371
- The ` _jupyter_server_extension_paths ` provides the Python package name
372
- to the server. But the most important one is ` load_jupyter_server_extension `
371
+ The ` _jupyter_server_extension_points ` provides the Python package name
372
+ to the server. But the most important one is ` _load_jupyter_server_extension `
373
373
that register new handlers.
374
374
375
375
` ` ` py
@@ -632,8 +632,9 @@ It will copy the NPM package in the Python package and force it to be copied in
632
632
JupyterLab is looking for frontend extensions when the Python package is installed:
633
633
634
634
` ` ` py
635
+ # setup .py #L38 -L38
635
636
636
- (" share/jupyter/labextensions/%s" % labext_name , lab_path , " *. *" )
637
+ (" share/jupyter/labextensions/%s" % labext_name , lab_path , " **" ),
637
638
` ` `
638
639
639
640
The last piece of configuration needed is the enabling of the server extension. This is
@@ -655,9 +656,9 @@ done by copying the following JSON file:
655
656
in the appropriate jupyter folder ( ` etc /jupyter /jupyter_server_config .d ` ):
656
657
657
658
` ` ` py
659
+ # setup .py #L40 -L40
658
660
659
- (" etc/jupyter/jupyter_server_config.d" ,
660
- " jupyter-config" , " jlab_ext_example.json" ),
661
+ (" etc/jupyter/jupyter_server_config.d" , " jupyter-config" , " jlab_ext_example.json" ),
661
662
` ` `
662
663
663
664
### JupyterLab Extension Manager
0 commit comments