MCPcopy Index your code
hub / github.com/ipython/ipython / clear_output

Method clear_output

IPython/core/displaypub.py:176–181  ·  view source on GitHub ↗

Clear the output of the cell receiving output.

(self, wait=False)

Source from the content-addressed store, hash-verified

174 return self._is_publishing
175
176 def clear_output(self, wait=False):
177 """Clear the output of the cell receiving output."""
178 print("\033[2K\r", end="")
179 sys.stdout.flush()
180 print("\033[2K\r", end="")
181 sys.stderr.flush()
182
183
184class CapturingDisplayPublisher(DisplayPublisher):

Callers 2

clear_outputFunction · 0.45
clear_outputMethod · 0.45

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected