You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/developers/extensions.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,11 @@ Then add this handler to Jupyter Server's Web Application through the ``_load_ju
59
59
Making an extension discoverable
60
60
--------------------------------
61
61
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.
63
63
64
64
.. code-block:: python
65
65
66
-
def_jupyter_server_extension_paths():
66
+
def_jupyter_server_extension_points():
67
67
"""
68
68
Returns a list of dictionaries with metadata describing
69
69
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+
255
255
from myextension import MyExtensionApp
256
256
257
257
258
-
def_jupyter_server_extension_paths():
258
+
def_jupyter_server_extension_points():
259
259
"""
260
260
Returns a list of dictionaries with metadata describing
261
261
where to find the `_load_jupyter_server_extension` function.
@@ -301,14 +301,14 @@ Distributing a server extension
301
301
302
302
Putting it all together, authors can distribute their extension following this steps:
303
303
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.
305
305
This function should likely live in the ``__init__.py`` found at the root of the extension package. It will look something like this:
0 commit comments