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: Log the output.
docstr_tok: ["Log","the","output","."]
code: def log_output(self, format_dict):
      """Log the output."""
      if "text/plain" not in format_dict:
          # nothing to do
          return
      if self.shell.logger.log_output:
          self.shell.logger.log_write(
              format_dict["text/plain"], "output"
          )
      self.shell.history_manager.output_hist_reprs[
          self.prompt_count
      ] = format_dict["text/plain"]
  
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 12 for calling the DisplayHook obj's underlying member method code with example usage: obj.log_output(format_dict) without return types