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: Constructs a NotebookFormatter.
  
  Args:
    cls: The TFX class to be formated by this NotebookFormatter instance.
    attributes: A list of string attributes that are to be displayed by this
      formatter. Can be a nested field specifier with nested attribute names
      separated by "." (e.g. to get `obj.a.b`, specify the attribute string
      "a.b").
    title_format: A 2-tuple consisting of (1) a format string and (2) a list
      of either string attribute names (possible of nested field specifiers as
      in "attributes" above) or callback callable objects taking as input the
      object to be formatted and returning the value for that position of the
      format string. If not specified, the default title format will be used.
    _show_artifact_attributes: For a formatter of an Artifact object, show
      the Artifact type-specific properties for each artifact.
docstr_tok: ["Constructs","a","NotebookFormatter",".","Args",":","cls",":","The","TFX","class","to","be","formated","by","this","NotebookFormatter","instance",".","attributes",":","A","list","of","string","attributes","that","are","to","be","displayed","by","this","formatter",".","Can","be","a","nested","field","specifier","with","nested","attribute","names","separated","by","``",".","''","(","e.g",".","to","get","`","obj.a.b","`",",","specify","the","attribute","string","``","a.b","''",")",".","title_format",":","A","2-tuple","consisting","of","(","1",")","a","format","string","and","(","2",")","a","list","of","either","string","attribute","names","(","possible","of","nested","field","specifiers","as","in","``","attributes","''","above",")","or","callback","callable","objects","taking","as","input","the","object","to","be","formatted","and","returning","the","value","for","that","position","of","the","format","string",".","If","not","specified",",","the","default","title","format","will","be","used",".","_show_artifact_attributes",":","For","a","formatter","of","an","Artifact","object",",","show","the","Artifact","type-specific","properties","for","each","artifact","."]
code: def __init__(
      self,
      cls: Type[Any],
      attributes: Optional[List[str]] = None,
      title_format: Optional[
          Tuple[str, List[Union[str, Callable[..., Any]]]]
      ] = None,
      _show_artifact_attributes: Optional[bool] = False,
  ):
      """Constructs a NotebookFormatter.
  
      Args:
        cls: The TFX class to be formated by this NotebookFormatter instance.
        attributes: A list of string attributes that are to be displayed by this
          formatter. Can be a nested field specifier with nested attribute names
          separated by "." (e.g. to get `obj.a.b`, specify the attribute string
          "a.b").
        title_format: A 2-tuple consisting of (1) a format string and (2) a list
          of either string attribute names (possible of nested field specifiers as
          in "attributes" above) or callback callable objects taking as input the
          object to be formatted and returning the value for that position of the
          format string. If not specified, the default title format will be used.
        _show_artifact_attributes: For a formatter of an Artifact object, show
          the Artifact type-specific properties for each artifact.
      """
      self.cls = cls
      self.attributes = attributes or []
      self.title_format = (
          title_format or NotebookFormatter._DEFAULT_TITLE_FORMAT
      )
      self._show_artifact_attributes = _show_artifact_attributes
  
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 1 to create a new NotebookFormatter object  with example: obj = NotebookFormatter(cls, attributes, title_format, _show_artifact_attributes)