class_docstr: A simple displayhook that publishes the object's repr over a ZeroMQ
  socket.
class_docstr_tok: ["A","simple","displayhook","that","publishes","the","object","'s","repr","over","a","ZeroMQ","socket","."]
docstr: Initialize the hook.
docstr_tok: ["Initialize","the","hook","."]
code: def __init__(self, session, pub_socket):
      """Initialize the hook."""
      self.session = session
      self.pub_socket = pub_socket
      self.parent_header = {}
  
file_path: catboost/contrib/python/ipykernel/py3/ipykernel/displayhook.py
imports: from __future__ import annotations
  import builtins
  import sys
  import typing
  from IPython.core.displayhook import DisplayHook
  from jupyter_client.session import Session, extract_header
  from traitlets import Any, Dict, Instance
  from ipykernel.jsonutil import encode_images, json_clean
label_desc: Use image node_id 1 to create a new ZMQDisplayHook object  with example: obj = ZMQDisplayHook(session, pub_socket)