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

Method pre_cmd

IPython/lib/demo.py:619–624  ·  view source on GitHub ↗

Method called before executing each block. This one simply clears the screen.

(self)

Source from the content-addressed store, hash-verified

617 return ''
618
619 def pre_cmd(self):
620 """Method called before executing each block.
621
622 This one simply clears the screen."""
623 from IPython.utils.terminal import _term_clear
624 _term_clear()
625
626class ClearDemo(ClearMixin,Demo):
627 pass

Callers

nothing calls this directly

Calls 1

_term_clearFunction · 0.90

Tested by

no test coverage detected