class_docstr: A client for debugpy.
class_docstr_tok: ["A","client","for","debugpy","."]
docstr: Initialize the client.
docstr_tok: ["Initialize","the","client","."]
code: def __init__(self, log, debugpy_stream, event_callback):
      """Initialize the client."""
      self.log = log
      self.debugpy_stream = debugpy_stream
      self.event_callback = event_callback
      self.message_queue = DebugpyMessageQueue(
          self._forward_event, self.log
      )
      self.debugpy_host = "127.0.0.1"
      self.debugpy_port = -1
      self.routing_id = None
      self.wait_for_attach = True
      self.init_event = Event()
      self.init_event_seq = -1
  
imports: import os
  import re
  import sys
  import typing
  from pathlib import Path
  import zmq
  from IPython.core.getipython import get_ipython
  from IPython.core.inputtransformer2 import leading_empty_lines
  from tornado.locks import Event
  from tornado.queues import Queue
  from zmq.utils import jsonapi
  from .compiler import get_file_name, get_tmp_directory, get_tmp_hash_seed
label_desc: Use image node_id 1 to create a new DebugpyClient object  with example: obj = DebugpyClient(log, debugpy_stream, event_callback)