Skip to content

Commit 9ee0852

Browse files
committed
wip
1 parent fd6e4ef commit 9ee0852

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ipywidgets/widgets/tests/test_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_no_widget_view():
2121
display(w)
2222

2323
if version_info >= (6, 1):
24-
assert len(cap.outputs) == 1 and cap.outputs[0].data == msg, (len(cap.outputs), repr(cap.outputs[0].data), msg)
24+
assert len(cap.outputs) == 1 and cap.outputs[0].data == msg, (len(cap.outputs), repr(cap.outputs[0].data), msg, [i.data for i in cap.outputs])
2525
else:
2626
assert cap.outputs == [], repr(cap.outputs)
2727

ipywidgets/widgets/widget.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ def notify_change(self, change):
600600
super(Widget, self).notify_change(change)
601601

602602
def __repr__(self):
603+
print('hi')
603604
return self._gen_repr_from_keys(self._repr_keys())
604605

605606
#-------------------------------------------------------------------------
@@ -701,6 +702,7 @@ def _trait_from_json(x, self):
701702

702703
def _repr_mimebundle_(self, **kwargs):
703704
"""Called when `IPython.display.display` is called."""
705+
print('mimebundle')
704706
if self._view_name is not None:
705707
# This callback now happens *before* the actual display call,
706708
# whereas before it happened *after* the display call.
@@ -730,6 +732,7 @@ def _ipython_display_(self, **kwargs):
730732
Note: if we are in IPython 6.1 or later, we return NotImplemented so
731733
that _repr_mimebundle_ is used directly.
732734
"""
735+
print('display')
733736
if ipython_version_info >= (6, 1):
734737
raise NotImplementedError
735738

0 commit comments

Comments
 (0)