Skip to content

Commit c2bf071

Browse files
authored
Update server-extension README
1 parent c2213cc commit c2bf071

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

advanced/server-extension/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ def _jupyter_labextension_paths():
348348
}]
349349

350350

351-
def _jupyter_server_extension_paths():
351+
def _jupyter_server_extension_points():
352352
return [{"module": "jlab_ext_example"}]
353353

354354

355-
def load_jupyter_server_extension(lab_app):
355+
def _load_jupyter_server_extension(lab_app):
356356
"""Registers the API handler to receive HTTP requests from the frontend extension.
357357
Parameters
358358
----------
@@ -368,8 +368,8 @@ def load_jupyter_server_extension(lab_app):
368368

369369
```
370370
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`
373373
that register new handlers.
374374
375375
```py
@@ -632,8 +632,9 @@ It will copy the NPM package in the Python package and force it to be copied in
632632
JupyterLab is looking for frontend extensions when the Python package is installed:
633633
634634
```py
635+
# setup.py#L38-L38
635636

636-
("share/jupyter/labextensions/%s" % labext_name, lab_path, "*.*")
637+
("share/jupyter/labextensions/%s" % labext_name, lab_path, "**"),
637638
```
638639
639640
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:
655656
in the appropriate jupyter folder (`etc/jupyter/jupyter_server_config.d`):
656657
657658
```py
659+
# setup.py#L40-L40
658660

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"),
661662
```
662663
663664
### JupyterLab Extension Manager

0 commit comments

Comments
 (0)