class_docstr: The workspace contains the processing information and state for
  a pipeline run on an image set
class_docstr_tok: ["The","workspace","contains","the","processing","information","and","state","for","a","pipeline","run","on","an","image","set"]
docstr: make a request for GUI interaction via a pipeline event
  
  module - target module for interaction request
  
  headless_ok - True if the interaction request can be made in
                a headless context. An example is synchronized access to
                a shared resource which must be coordinated among all
                workers.
code: def interaction_request(self, module, *args, **kwargs):
      """make a request for GUI interaction via a pipeline event
  
      module - target module for interaction request
  
      headless_ok - True if the interaction request can be made in
                    a headless context. An example is synchronized access to
                    a shared resource which must be coordinated among all
                    workers.
      """
      # See also:
      # main().interaction_handler() in __init__.py
      # PipelineController.module_interaction_request() in pipelinecontroller.py
      import cellprofiler_core.preferences
  
      if "headless_ok" in kwargs:
          tmp = kwargs.copy()
          del tmp["headless_ok"]
          headless_ok = kwargs["headless_ok"]
          kwargs = tmp
      else:
          headless_ok = False
      if self.interaction_handler is None:
          if (
              cellprofiler_core.preferences.get_headless()
              and not headless_ok
          ):
              raise self.NoInteractionException()
          else:
              return module.handle_interaction(*args, **kwargs)
      else:
          return self.interaction_handler(module, *args, **kwargs)
  
imports: import io
  import logging
  import os
  import h5py
  import cellprofiler_core.utilities.measurement
  from ._disposition_changed_event import DispositionChangedEvent
  from ..constants.measurement import EXPERIMENT
  from ..constants.workspace import DISPOSITION_CONTINUE
  from ..utilities.hdf5_dict import HDF5FileList
label_desc: Use image node_id 27 for calling the Workspace obj's underlying member method code with example usage: obj.interaction_request(module) and returns: self, module