Skip to content

Commit cfda7c9

Browse files
committed
update docs to use _jupyter_server_extension_points
1 parent f41766f commit cfda7c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/developers/extensions.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ Then add this handler to Jupyter Server's Web Application through the ``_load_ju
5959
Making an extension discoverable
6060
--------------------------------
6161

62-
To make this extension discoverable to Jupyter Server, first define a ``_jupyter_server_extension_paths()`` function at the root of the module/package. This function returns metadata describing how to load the extension. Usually, this requires a ``module`` key with the import path to the extension's ``_load_jupyter_server_extension`` function.
62+
To make this extension discoverable to Jupyter Server, first define a ``_jupyter_server_extension_points()`` function at the root of the module/package. This function returns metadata describing how to load the extension. Usually, this requires a ``module`` key with the import path to the extension's ``_load_jupyter_server_extension`` function.
6363

6464
.. code-block:: python
6565
66-
def _jupyter_server_extension_paths():
66+
def _jupyter_server_extension_points():
6767
"""
6868
Returns a list of dictionaries with metadata describing
6969
where to find the `_load_jupyter_server_extension` function.
@@ -255,7 +255,7 @@ To make an ``ExtensionApp`` discoverable by Jupyter Server, add the ``app`` key+
255255
from myextension import MyExtensionApp
256256
257257
258-
def _jupyter_server_extension_paths():
258+
def _jupyter_server_extension_points():
259259
"""
260260
Returns a list of dictionaries with metadata describing
261261
where to find the `_load_jupyter_server_extension` function.
@@ -301,14 +301,14 @@ Distributing a server extension
301301

302302
Putting it all together, authors can distribute their extension following this steps:
303303

304-
1. Add a ``_jupyter_server_extension_paths()`` function at the extension's root.
304+
1. Add a ``_jupyter_server_extension_points()`` function at the extension's root.
305305
This function should likely live in the ``__init__.py`` found at the root of the extension package. It will look something like this:
306306

307307
.. code-block:: python
308308
309309
# Found in the __init__.py of package
310310
311-
def _jupyter_server_extension_paths():
311+
def _jupyter_server_extension_points():
312312
return [
313313
{
314314
"module": "myextension.app",

0 commit comments

Comments
 (0)