class_docstr: A displayhook subclass that publishes data using ZeroMQ. This is intended
  to work with an InteractiveShell instance. It sends a dict of different
  representations of the object.
class_docstr_tok: ["A","displayhook","subclass","that","publishes","data","using","ZeroMQ",".","This","is","intended","to","work","with","an","InteractiveShell","instance",".","It","sends","a","dict","of","different","representations","of","the","object","."]
docstr: Set the parent for outbound messages.
docstr_tok: ["Set","the","parent","for","outbound","messages","."]
code: def set_parent(self, parent):
      """Set the parent for outbound messages."""
      self.parent_header = extract_header(parent)
  
file_path: catboost/contrib/python/ipykernel/py2/ipykernel/displayhook.py
imports: import sys
  from IPython.core.displayhook import DisplayHook
  from ipykernel.jsonutil import encode_images, json_clean
  from ipython_genutils.py3compat import builtin_mod
  from traitlets import Instance, Dict, Any
  from jupyter_client.session import extract_header, Session
label_desc: Use image node_id 1 for calling the ZMQShellDisplayHook obj's underlying member method code with example usage: obj.set_parent(parent) without return types