ensure_plotly_trace

viz_backend.ensure_plotly_trace(obj, *, context='add_trace')

Raise TypeError if obj is not a Plotly trace.