exa.common.helpers.notebook_helper.value_type_and_display

exa.common.helpers.notebook_helper.value_type_and_display#

value_type_and_display(value)#

Classify a value and format it for display, mirroring the jinja template.

Parameters:

value (Any) – The (already SI-rescaled) value to classify and format.

Returns:

A (type, display) pair where type is one of none, bool, number, string, sequence or other.

Return type:

tuple[str, str]