class_docstr: A subclass of InteractiveShell for ZMQ.
class_docstr_tok: ["A","subclass","of","InteractiveShell","for","ZMQ","."]
code: def data_pub(self, pub):
      self._data_pub = pub
  
imports: from __future__ import print_function
  import os
  import sys
  import time
  import warnings
  from threading import local
  from tornado import ioloop
  from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
  from IPython.core import page
  from IPython.core.autocall import ZMQExitAutocall
  from IPython.core.displaypub import DisplayPublisher
  from IPython.core.error import UsageError
  from IPython.core.magics import MacroToEdit, CodeMagics
  from IPython.core.magic import magics_class, line_magic, Magics
  from IPython.core import payloadpage
  from IPython.core.usage import default_banner
  from IPython.display import display, Javascript
  from ipykernel import get_connection_file, get_connection_info, connect_qtconsole
  from IPython.utils import openpy
  from ipykernel.jsonutil import json_clean, encode_images
  from IPython.utils.process import arg_split
  from ipython_genutils import py3compat
  from ipython_genutils.py3compat import unicode_type
  from traitlets import Instance, Type, Dict, CBool, CBytes, Any, default, observe
  from ipykernel.displayhook import ZMQShellDisplayHook
  from jupyter_core.paths import jupyter_runtime_dir
  from jupyter_client.session import extract_header, Session
label_desc: Use image node_id 9 for calling the ZMQInteractiveShell obj's underlying member method code with example usage: obj.data_pub(pub) without return types