We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 417fc6d commit 870de12Copy full SHA for 870de12
plotly/basedatatypes.py
@@ -411,6 +411,8 @@ def __repr__(self):
411
terminal/notebook
412
"""
413
props = self.to_plotly_json()
414
+
415
+ # Elide template
416
template_props = props.get('layout', {}).get('template', {})
417
if template_props:
418
props['layout']['template'] = '...'
@@ -3401,6 +3403,10 @@ def __repr__(self):
3401
3403
if p in self._validators and
3402
3404
not isinstance(self._validators[p], LiteralValidator)}
3405
3406
3407
+ if 'template' in props:
3408
+ props['template'] = '...'
3409
3410
# Build repr string
3411
repr_str = BasePlotlyType._build_repr_for_class(
3412
props=props,
0 commit comments