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

Method pre_cmd

IPython/lib/demo.py:620–625  ·  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

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

Callers

nothing calls this directly

Calls 1

_term_clearFunction · 0.90

Tested by

no test coverage detected