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: Write the format data dict to the frontend.
  
  This default version of this method simply writes the plain text
  representation of the object to ``sys.stdout``. Subclasses should
  override this method to send the entire `format_dict` to the
  frontends.
  
  Parameters
  ----------
  format_dict : dict
      The format dict for the object passed to `sys.displayhook`.
  md_dict : dict (optional)
      The metadata dict to be associated with the display data.
docstr_tok: ["Write","the","format","data","dict","to","the","frontend",".","This","default","version","of","this","method","simply","writes","the","plain","text","representation","of","the","object","to","``","sys.stdout","``",".","Subclasses","should","override","this","method","to","send","the","entire","`","format_dict","`","to","the","frontends",".","Parameters","--","--","--","--","--","format_dict",":","dict","The","format","dict","for","the","object","passed","to","`","sys.displayhook","`",".","md_dict",":","dict","(","optional",")","The","metadata","dict","to","be","associated","with","the","display","data","."]
code: def write_format_data(self, format_dict, md_dict=None) -> None:
      """Write the format data dict to the frontend.
  
      This default version of this method simply writes the plain text
      representation of the object to ``sys.stdout``. Subclasses should
      override this method to send the entire `format_dict` to the
      frontends.
  
      Parameters
      ----------
      format_dict : dict
          The format dict for the object passed to `sys.displayhook`.
      md_dict : dict (optional)
          The metadata dict to be associated with the display data.
      """
      if "text/plain" not in format_dict:
          # nothing to do
          return
      # We want to print because we want to always make sure we have a
      # newline, even if all the prompt separators are ''. This is the
      # standard IPython behavior.
      result_repr = format_dict["text/plain"]
      if "\n" in result_repr:
          # So that multi-line strings line up with the left column of
          # the screen, instead of having the output prompt mess up
          # their first line.
          # We use the prompt template instead of the expanded prompt
          # because the expansion may add ANSI escapes that will interfere
          # with our ability to determine whether or not we should add
          # a newline.
          if not self.prompt_end_newline:
              # But avoid extraneous empty lines.
              result_repr = "\n" + result_repr
  
      try:
          print(result_repr)
      except UnicodeEncodeError:
          # If a character is not supported by the terminal encoding replace
          # it with its \u or \x representation
          print(
              result_repr.encode(
                  sys.stdout.encoding, "backslashreplace"
              ).decode(sys.stdout.encoding)
          )
  
imports: import builtins
  import sys
  import io
  import tokenize
  from traitlets.config.configurable import Configurable
  from traitlets import Instance, Float
  from warnings import warn
label_desc: Use image node_id 9 for calling the DisplayHook obj's underlying member method code with example usage: obj.write_format_data(format_dict, md_dict) without return types