class_docstr: Formats a TFX component in the context of an interactive notebook.
class_docstr_tok: ["Formats","a","TFX","component","in","the","context","of","an","interactive","notebook","."]
docstr: Render the value section of an object.
docstr_tok: ["Render","the","value","section","of","an","object","."]
code: def render_value(self, value: Any, seen_elements: Set[Any]) -> str:
      """Render the value section of an object."""
      formatted_value = html.escape(str(value))
      if isinstance(value, dict):
          formatted_value = self.render_dict(value, seen_elements)
      if isinstance(value, list):
          formatted_value = self.render_list(value, seen_elements)
      if not issubclass(value.__class__, type):
          # Metaclass does not have mro().
          for cls in value.__class__.mro():
              if cls in FORMATTER_REGISTRY:
                  formatted_value = FORMATTER_REGISTRY[cls].render(
                      value, expanded=False, seen_elements=seen_elements
                  )
                  break
      return formatted_value
  
file_path: tfx/tfx/orchestration/experimental/interactive/notebook_formatters.py
imports: import builtins
  import html
  from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Type, Union
  from tfx.dsl.components.base.base_component import BaseComponent
  from tfx.orchestration.experimental.interactive.execution_result import ExecutionResult
  from tfx.types.artifact import Artifact
  from tfx.types.channel import Channel
label_desc: Use image node_id 5 for calling the NotebookFormatter obj's underlying member method code with example usage: obj.render_value(value, seen_elements) and returns: formatted_value