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

Method clear_output

IPython/core/displaypub.py:118–123  ·  view source on GitHub ↗

Clear the output of the cell receiving output.

(self, wait=False)

Source from the content-addressed store, hash-verified

116 print(data['text/plain'])
117
118 def clear_output(self, wait=False):
119 """Clear the output of the cell receiving output."""
120 print('\033[2K\r', end='')
121 sys.stdout.flush()
122 print('\033[2K\r', end='')
123 sys.stderr.flush()
124
125
126class CapturingDisplayPublisher(DisplayPublisher):

Callers 2

clear_outputFunction · 0.45
clear_outputMethod · 0.45

Calls 1

flushMethod · 0.45

Tested by

no test coverage detected