MCPcopy Create free account
hub / github.com/ipython/ipython / initialize_subcommand

Method initialize_subcommand

IPython/core/application.py:237–243  ·  view source on GitHub ↗
(self, subc, argv=None)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected