Skip to content

Commit cc62c7b

Browse files
authored
Merge pull request #260 from jsignell/patch-1
More flexible _ipython_display_
2 parents b0dc970 + 425dea3 commit cc62c7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

streamz/core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ def _ipython_display_(self, **kwargs):
260260
from ipywidgets import Output
261261
import IPython
262262
except ImportError:
263-
return self._repr_html_()
263+
if hasattr(self, '_repr_html_'):
264+
return self._repr_html_()
265+
else:
266+
return self.__repr__()
264267
output = Output(_view_count=0)
265268
output_ref = weakref.ref(output)
266269

0 commit comments

Comments
 (0)