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

Method new_do_restart

IPython/core/debugger.py:328–332  ·  view source on GitHub ↗

Restart command. In the context of ipython this is exactly the same thing as 'quit'.

(self, arg)

Source from the content-addressed store, hash-verified

326 do_q = do_quit = decorate_fn_with_doc(new_do_quit, OldPdb.do_quit)
327
328 def new_do_restart(self, arg):
329 """Restart command. In the context of ipython this is exactly the same
330 thing as 'quit'."""
331 self.msg("Restart doesn't make sense here. Using 'quit' instead.")
332 return self.do_quit(arg)
333
334 def print_stack_trace(self, context=None):
335 Colors = self.color_scheme_table.active_colors

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected