| 235 | deprecated_subcommands = {} |
| 236 | |
| 237 | def initialize_subcommand(self, subc, argv=None): |
| 238 | if subc in self.deprecated_subcommands: |
| 239 | self.log.warning("Subcommand `ipython {sub}` is deprecated and will be removed " |
| 240 | "in future versions.".format(sub=subc)) |
| 241 | self.log.warning("You likely want to use `jupyter {sub}` in the " |
| 242 | "future".format(sub=subc)) |
| 243 | return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv) |
| 244 | |
| 245 | def init_crash_handler(self): |
| 246 | """Create a crash handler, typically setting sys.excepthook to it.""" |