##// END OF EJS Templates
refuse to start if `--pylab` is given
MinRK -
Show More
@@ -511,15 +511,16 b' class NotebookApp(BaseIPythonApplication):'
511 """
511 """
512 )
512 )
513 def _pylab_changed(self, name, old, new):
513 def _pylab_changed(self, name, old, new):
514 """when --pylab is specified, display a warning and ignore the value"""
514 """when --pylab is specified, display a warning and exit"""
515 if new != 'warn':
515 if new != 'warn':
516 backend = ' %s' % new
516 backend = ' %s' % new
517 else:
517 else:
518 backend = ''
518 backend = ''
519 self.log.warn("Support for specifying --pylab on the command line has been removed.")
519 self.log.error("Support for specifying --pylab on the command line has been removed.")
520 self.log.warn(
520 self.log.error(
521 "Please use `%pylab{0}` or `%matplotlib{0}` in the notebook itself.".format(backend)
521 "Please use `%pylab{0}` or `%matplotlib{0}` in the notebook itself.".format(backend)
522 )
522 )
523 self.exit(1)
523
524
524 def _notebook_dir_changed(self, name, old, new):
525 def _notebook_dir_changed(self, name, old, new):
525 """Do a bit of validation of the notebook dir."""
526 """Do a bit of validation of the notebook dir."""
General Comments 0
You need to be logged in to leave comments. Login now