From c21debfc4a32f260ec75b12348dc39393fafb98e Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sun, 19 Jul 2015 21:04:33 -0700 Subject: [PATCH] Use notebook config file for nbextension commands --- notebook/nbextensions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/notebook/nbextensions.py b/notebook/nbextensions.py index b1277719d..98e31f441 100644 --- a/notebook/nbextensions.py +++ b/notebook/nbextensions.py @@ -288,6 +288,9 @@ class InstallNBExtensionApp(JupyterApp): verbose = Enum((0,1,2), default_value=1, config=True, help="Verbosity level" ) + + def _config_file_name_default(self): + return 'jupyter_notebook_config' def install_extensions(self): if len(self.extra_args)>1: @@ -330,6 +333,9 @@ class EnableNBExtensionApp(JupyterApp): aliases = {'section': 'EnableNBExtensionApp.section', } + def _config_file_name_default(self): + return 'jupyter_notebook_config' + def enable_nbextension(self, name): # Local import to avoid circular import issue on Py 2 from notebook.services.config import ConfigManager @@ -357,6 +363,9 @@ class DisableNBExtensionApp(JupyterApp): aliases = {'section': 'DisableNBExtensionApp.section', } + def _config_file_name_default(self): + return 'jupyter_notebook_config' + def disable_nbextension(self, name): # Local import to avoid circular import issue on Py 2 from notebook.services.config import ConfigManager