Skip to content

Commit

Permalink
clean up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 19, 2019
1 parent 37a8143 commit 1a68613
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions jupyter_server/extension/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,11 @@ def _default_extension_name(self, obj, value):
]

static_file_path = List(Unicode(),
help="""paths to search for serving static files.
This allows adding javascript/css to be available from the notebook server machine,
or overriding individual files in the IPython
"""
help="""paths to search for serving static files for the extension."""
).tag(config=True)

template_path = List(Unicode(),
help=_("""Paths to search for serving jinja templates.
Can be used to override templates from notebook.templates.""")
help=_("""Paths to search for serving jinja templates for the extension.""")
).tag(config=True)

settings = Dict(
Expand Down Expand Up @@ -95,11 +89,11 @@ def initialize_handlers(self):
pass

def initialize_templates(self):
""""""
"""Override this method to add handling of template files."""
pass

def initialize_settings(self):
""""""
"""Override this method to add handling of settings."""
pass

@staticmethod
Expand All @@ -110,16 +104,18 @@ def initialize_server():
return serverapp

def initialize(self, serverapp, argv=None):
"""Initialize the extension app."""
super(ExtensionApp, self).initialize(argv=argv)
self.serverapp = serverapp

def start(self, **kwargs):
"""Start the extension app."""
# Start the server.
self.serverapp.start()

@classmethod
def launch_instance(cls, argv=None, **kwargs):
"""Lśunch the ServerApp and Server Extension Application.
"""Launch the ServerApp and Server Extension Application.
Properly orders the steps to initialize and start the server and extension.
"""
Expand Down

0 comments on commit 1a68613

Please sign in to comment.