environment/lib/python2.7/site-packages/IPython/frontend/qt/console/console_widget.py
def clear(self, keep_input=True):
        """ Clear the console.

        Parameters:
        -----------
        keep_input : bool, optional (default True)
            If set, restores the old input buffer if a new prompt is written.
        """
        if self._executing:
            self._control.clear()
        else:
            if keep_input:
                input_buffer = self.input_buffer
            self._control.clear()
            self._show_prompt()
            if keep_input:
                self.input_buffer = input_buffer
def clear(self, keep_input=True):
        if self._executing:
            self._control.clear()
        else:
            if keep_input:
                input_buffer = self.input_buffer
            self._control.clear()
            self._show_prompt()
            if keep_input:
                self.input_buffer = input_buffer
def clear ( self , keep_input = True ) : if self . _executing : self . _control . clear ( ) else : if keep_input : input_buffer = self . input_buffer self . _control . clear ( ) self . _show_prompt ( ) if keep_input : self . input_buffer = input_buffer
Clear the console.

        Parameters:
        -----------
        keep_input : bool, optional (default True)
            If set, restores the old input buffer if a new prompt is written.
Clear the console .