viz_backend.ensure_plotly_trace(obj, *, context='add_trace')
Raise TypeError if obj is not a Plotly trace.
TypeError
obj