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

Method source_reset

IPython/core/inputsplitter.py:345–350  ·  view source on GitHub ↗

Return the input source and perform a full reset.

(self)

Source from the content-addressed store, hash-verified

343 self._is_invalid = False
344
345 def source_reset(self):
346 """Return the input source and perform a full reset.
347 """
348 out = self.source
349 self.reset()
350 return out
351
352 def check_complete(self, source):
353 """Return whether a block of code is ready to execute, or should be continued

Callers 5

mini_interactive_loopFunction · 0.95
test_sourceMethod · 0.45
test_syntaxMethod · 0.45
test_syntax_multilineMethod · 0.45

Calls 1

resetMethod · 0.95

Tested by 4

mini_interactive_loopFunction · 0.76
test_sourceMethod · 0.36
test_syntaxMethod · 0.36
test_syntax_multilineMethod · 0.36