def __call__(self, result=None):
        """Printing with history cache management.

        This is invoked everytime the interpreter needs to print, and is
        activated by setting the variable sys.displayhook to it.
        """
        self.check_for_underscore()
        if result is not None and not self.quiet():
            self.start_displayhook()
            self.write_output_prompt()
            format_dict = self.compute_format_data(result)
            self.write_format_data(format_dict)
            self.update_user_ns(result)
            self.log_output(format_dict)
            self.finish_displayhook()
def __call__ ( self , result = None ) : self . check_for_underscore ( ) if result is not None and not self . quiet ( ) : self . start_displayhook ( ) self . write_output_prompt ( ) format_dict = self . compute_format_data ( result ) self . write_format_data ( format_dict ) self . update_user_ns ( result ) self . log_output ( format_dict ) self . finish_displayhook ( )
Printing with history cache management.

        This is invoked everytime the interpreter needs to print, and is
        activated by setting the variable sys.displayhook to it.