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: Should we silence the display hook because of ';'?
docstr_tok: ["Should","we","silence","the","display","hook","because","of","'",";","'","?"]
code: def quiet(self):
      """Should we silence the display hook because of ';'?"""
      # do not print output if input ends in ';'
  
      try:
          cell = cast_unicode_py2(
              self.shell.history_manager.input_hist_parsed[-1]
          )
      except IndexError:
          # some uses of ipshellembed may fail here
          return False
  
      sio = _io.StringIO(cell)
      tokens = list(tokenize.generate_tokens(sio.readline))
  
      for token in reversed(tokens):
          if token[0] in (
              tokenize.ENDMARKER,
              tokenize.NL,
              tokenize.NEWLINE,
              tokenize.COMMENT,
          ):
              continue
          if (token[0] == tokenize.OP) and (token[1] == ";"):
              return True
          else:
              return False
  
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 4 for calling the DisplayHook obj's underlying member method code with example usage: obj.quiet() and returns: False, True, False