Show More
@@ -710,7 +710,7 b' class NotebookApp(BaseIPythonApplication):' | |||||
710 | self.config.FileContentsManager.root_dir = new |
|
710 | self.config.FileContentsManager.root_dir = new | |
711 | self.config.MappingKernelManager.root_dir = new |
|
711 | self.config.MappingKernelManager.root_dir = new | |
712 |
|
712 | |||
713 | extensions = List(Unicode(), config=True, |
|
713 | server_extensions = List(Unicode(), config=True, | |
714 | help="Python modules to load as notebook server extensions" |
|
714 | help="Python modules to load as notebook server extensions" | |
715 | ) |
|
715 | ) | |
716 |
|
716 | |||
@@ -921,13 +921,13 b' class NotebookApp(BaseIPythonApplication):' | |||||
921 | self.log.warn("components submodule unclean, you may see 404s on static/components") |
|
921 | self.log.warn("components submodule unclean, you may see 404s on static/components") | |
922 | self.log.warn("run `setup.py submodule` or `git submodule update` to update") |
|
922 | self.log.warn("run `setup.py submodule` or `git submodule update` to update") | |
923 |
|
923 | |||
924 | def init_extensions(self): |
|
924 | def init_server_extensions(self): | |
925 | """Load any extensions specified by config. |
|
925 | """Load any extensions specified by config. | |
926 |
|
926 | |||
927 | Import the module, then call the load_jupyter_server_extension function, |
|
927 | Import the module, then call the load_jupyter_server_extension function, | |
928 | if one exists. |
|
928 | if one exists. | |
929 | """ |
|
929 | """ | |
930 | for modulename in self.extensions: |
|
930 | for modulename in self.server_extensions: | |
931 | try: |
|
931 | try: | |
932 | mod = importlib.import_module(modulename) |
|
932 | mod = importlib.import_module(modulename) | |
933 | func = getattr(mod, 'load_jupyter_server_extension', None) |
|
933 | func = getattr(mod, 'load_jupyter_server_extension', None) | |
@@ -947,7 +947,7 b' class NotebookApp(BaseIPythonApplication):' | |||||
947 | self.init_webapp() |
|
947 | self.init_webapp() | |
948 | self.init_terminals() |
|
948 | self.init_terminals() | |
949 | self.init_signal() |
|
949 | self.init_signal() | |
950 | self.init_extensions() |
|
950 | self.init_server_extensions() | |
951 |
|
951 | |||
952 | def cleanup_kernels(self): |
|
952 | def cleanup_kernels(self): | |
953 | """Shutdown all kernels. |
|
953 | """Shutdown all kernels. |
General Comments 0
You need to be logged in to leave comments.
Login now