def flush_clearoutput(self):
        """If a clearoutput is pending, execute it."""
        if self._pending_clearoutput:
            self._pending_clearoutput = False
            self.clear_output()
If a clearoutput is pending, execute it.
angrmanagement/vendor/qtconsole/frontend_widget.py