##// END OF EJS Templates
Give sensible error message if using the install-nbextension command to try to install multiple extensions.
Jason Grout -
Show More
@@ -319,7 +319,9 b' class NBExtensionApp(BaseIPythonApplication):'
319 319 )
320 320
321 321 def install_extensions(self):
322 install_nbextension(self.extra_args,
322 if len(self.extra_args)>1:
323 raise ValueError("only one nbextension allowed at a time. Call multiple times to install multiple extensions.")
324 install_nbextension(self.extra_args[0],
323 325 overwrite=self.overwrite,
324 326 symlink=self.symlink,
325 327 verbose=self.verbose,
General Comments 0
You need to be logged in to leave comments. Login now