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","."]
code: def prompt_count(self):
      return self.shell.execution_count
  
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 2 for calling the DisplayHook obj's underlying member method code with example usage: obj.prompt_count() and returns: self