Skip to content

Commit 578e074

Browse files
committed
Adjust printing length to fix test
1 parent 6a10ba9 commit 578e074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ipywidgets/widgets/widget_media.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def _get_repr(self, cls):
117117
# Return value first like a ValueWidget
118118
signature = []
119119

120-
sig_value = 'value={!r}'.format(self.value[:100].tobytes())
121-
if len(sig_value) > 120:
120+
sig_value = 'value={!r}'.format(self.value[:30].tobytes())
121+
if self.value.nbytes > 30:
122122
sig_value = sig_value[:-1]+"..."+sig_value[-1]
123123
signature.append(sig_value)
124124

0 commit comments

Comments
 (0)