class_docstr: The custom IPython displayhook to replace sys.displayhook.
  
  This class does many things, but the basic idea is that it is a callable
  that gets called anytime user code returns a value.
class_docstr_tok: ["The","custom","IPython","displayhook","to","replace","sys.displayhook",".","This","class","does","many","things",",","but","the","basic","idea","is","that","it","is","a","callable","that","gets","called","anytime","user","code","returns","a","value","."]
docstr: 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.
docstr_tok: ["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","."]
code: 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, md_dict = self.compute_format_data(result)
          self.update_user_ns(result)
          self.fill_exec_result(result)
          if format_dict:
              self.write_format_data(format_dict, md_dict)
              self.log_output(format_dict)
          self.finish_displayhook()
  
imports: from __future__ import print_function
  import sys
  import io
  import tokenize
  from traitlets.config.configurable import Configurable
  from IPython.utils.py3compat import builtin_mod, cast_unicode_py2
  from traitlets import Instance, Float
  from warnings import warn
label_desc: Use image node_id 13 for calling the DisplayHook obj's underlying member method code with example usage: obj.__call__(result) without return types