Rename extensions -> server_extensions

This commit is contained in:
Thomas Kluyver 2014-12-02 16:31:58 -08:00
parent e86d80e84a
commit 7e7d3d1f25

View File

@ -710,7 +710,7 @@ class NotebookApp(BaseIPythonApplication):
self.config.FileContentsManager.root_dir = new
self.config.MappingKernelManager.root_dir = new
extensions = List(Unicode(), config=True,
server_extensions = List(Unicode(), config=True,
help="Python modules to load as notebook server extensions"
)
@ -921,13 +921,13 @@ class NotebookApp(BaseIPythonApplication):
self.log.warn("components submodule unclean, you may see 404s on static/components")
self.log.warn("run `setup.py submodule` or `git submodule update` to update")
def init_extensions(self):
def init_server_extensions(self):
"""Load any extensions specified by config.
Import the module, then call the load_jupyter_server_extension function,
if one exists.
"""
for modulename in self.extensions:
for modulename in self.server_extensions:
try:
mod = importlib.import_module(modulename)
func = getattr(mod, 'load_jupyter_server_extension', None)
@ -947,7 +947,7 @@ class NotebookApp(BaseIPythonApplication):
self.init_webapp()
self.init_terminals()
self.init_signal()
self.init_extensions()
self.init_server_extensions()
def cleanup_kernels(self):
"""Shutdown all kernels.