From 8b953b558b0ab1b53fa1871e1bc39aeb1c149bba 2015-01-27 19:52:31 From: Jason Grout Date: 2015-01-27 19:52:31 Subject: [PATCH] Give sensible error message if using the install-nbextension command to try to install multiple extensions. --- diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index a8c689b..8f3239c 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -319,7 +319,9 @@ class NBExtensionApp(BaseIPythonApplication): ) def install_extensions(self): - install_nbextension(self.extra_args, + if len(self.extra_args)>1: + raise ValueError("only one nbextension allowed at a time. Call multiple times to install multiple extensions.") + install_nbextension(self.extra_args[0], overwrite=self.overwrite, symlink=self.symlink, verbose=self.verbose,