Skip to content

Commit 01031c6

Browse files
Fix doc (#183)
1 parent 7cf9436 commit 01031c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/source/frontends.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Jupyter Server does not come with a frontend out-of-the-box; instead, a frontend
1111
Writing a frontend application
1212
------------------------------
1313

14-
Jupyter Server provides two key classes for writing a server frontend:
14+
Jupyter Server provides two key classes for writing a server frontend:
1515

1616
- ``ExtensionApp``
1717
- ``ExtensionHandlerMixin``
@@ -28,7 +28,7 @@ To create a new Jupyter frontend application, subclass the ``ExtensionApp`` like
2828

2929
.. code-block:: python
3030
31-
from jupyter_server.extension import ExtensionApp
31+
from jupyter_server.extension.application import ExtensionApp
3232
3333
3434
class MyFrontend(ExtensionApp):
@@ -38,7 +38,7 @@ To create a new Jupyter frontend application, subclass the ``ExtensionApp`` like
3838
default_url = 'myfrontend'
3939
load_other_extensions = True
4040
41-
# --- ExtensionApp traits you can configure ---
41+
# --- ExtensionApp traits you can configure ---
4242
static_paths = [...]
4343
template_paths = [...]
4444
settings = {...}
@@ -61,7 +61,7 @@ To create a new Jupyter frontend application, subclass the ``ExtensionApp`` like
6161
def initialize_templates(self):
6262
...
6363
# Change the jinja templating environment
64-
self.settings.update({'myfrontend_jinja2_env': ...})
64+
self.settings.update({'myfrontend_jinja2_env': ...})
6565
6666
The ``ExtensionApp`` uses the following methods and properties to connect your frontend to the Jupyter server. Overwrite these pieces to add your custom settings, handlers and templates:
6767

@@ -85,7 +85,7 @@ To write handlers for an ``ExtensionApp``, use the ``ExtensionHandlerMixin`` cla
8585

8686
.. code-block:: python
8787
88-
from jupyter_server.extension import ExtensionHandlerMixin
88+
from jupyter_server.extension.handler import ExtensionHandlerMixin
8989
9090
class MyFrontendHandler(ExtensionHandlerMixin, JupyterHandler):
9191
@@ -121,7 +121,7 @@ To make your frontend executable from anywhere on your system, added this method
121121
122122
from setuptools import setup
123123
124-
124+
125125
setup(
126126
name='myfrontend',
127127
...

0 commit comments

Comments
 (0)