data_designer.config.utils.visualization
data_designer.config.utils.visualization
data_designer.config.utils.visualization
console
logger
_DEDICATED_DISPLAY_COL_TYPES
_LLM_COLUMN_TYPES
_SAMPLE_RECORD_DARK_CSS
Display raw HTML in a Jupyter notebook. Returns True if displayed.
Display image with caption in Jupyter notebook if available.
Parameters:
Base64-encoded image data, data URI, file path, or URL.
Name of the column (used for caption).
Returns:
bool
True if image was displayed, False otherwise.
Bases: str, enum.Enum
Display a sample record from the Data Designer dataset preview.
Parameters:
Index of the record to display. If None, the next record will be displayed. This is useful for running the cell in a notebook multiple times.
Theme to use for syntax highlighting. See the Syntax
documentation from rich for information about available themes.
Background color to use for the record. See the Syntax
documentation from rich for information about available background colors.
List of processors to display the artifacts for. If None, all processors will be displayed.
If True, seed columns will not be displayed separately.
If True (default), render LLM conversation traces when trace columns are present. Set to False to suppress trace display.
Optional path to save the rendered output as an HTML or SVG file.
Color theme for saved HTML files (dark or light).
Width of the rendered output in characters.
Mask API keys for display.
Environment variable names (all uppercase) are kept visible. Actual API keys are masked to show only the last 4 characters.
Parameters:
The API key to mask.
Returns:
str
Masked API key string or “(not set)” if None.
Extract human-readable type information from a JSON Schema field.
Extract human-readable constraints from a JSON Schema field.
Inject viewport meta tag and optional dark-mode CSS into a Rich-exported HTML file.