exa.common.helpers.notebook_helper.json_safe

Contents

exa.common.helpers.notebook_helper.json_safe#

json_safe(value)#

Convert a value into a JSON-serializable form for display tooltips.

Parameters:

value (Any) – Arbitrary setting value (may contain numpy types).

Returns:

A JSON-safe representation; non-convertible objects fall back to str.

Return type:

Any