Skip to content

Commit eac5ce1

Browse files
committed
move repr_html to _ImageWrapper
1 parent 749a68a commit eac5ce1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/omero/gateway/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,6 @@ def __init__(self, conn=None, obj=None, cache=None, **kwargs):
245245
self._conn.SERVICE_OPTS)
246246
self.__prepare__(**kwargs)
247247

248-
def _repr_html_(self):
249-
"""
250-
Returns an HTML representation of the object. This is used by the
251-
IPython notebook to display the object in a cell.
252-
"""
253-
return image_to_html(self)
254-
255248
def __eq__(self, a):
256249
"""
257250
Returns true if the object is of the same type and has same id and name
@@ -8136,6 +8129,13 @@ def getInstrument(self):
81368129
i = self._obj.instrument = meta_serv.loadInstrument(i.id.val, ctx)
81378130
return InstrumentWrapper(self._conn, i)
81388131

8132+
def _repr_html_(self):
8133+
"""
8134+
Returns an HTML representation of the object. This is used by the
8135+
IPython notebook to display the object in a cell.
8136+
"""
8137+
return image_to_html(self)
8138+
81398139
def _loadPixels(self):
81408140
"""
81418141
Checks that pixels are loaded

0 commit comments

Comments
 (0)