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

Method reset

IPython/core/inputsplitter.py:337–343  ·  view source on GitHub ↗

Reset the input buffer and associated state.

(self)

Source from the content-addressed store, hash-verified

335 self.encoding = get_input_encoding()
336
337 def reset(self):
338 """Reset the input buffer and associated state."""
339 self._buffer[:] = []
340 self.source = ''
341 self.code = None
342 self._is_complete = False
343 self._is_invalid = False
344
345 def source_reset(self):
346 """Return the input source and perform a full reset.

Callers 4

source_resetMethod · 0.95
check_completeMethod · 0.95
resetMethod · 0.45
_flushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected