Skip to content

Commit

Permalink
move repr_html to _ImageWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-mueller committed Sep 6, 2024
1 parent 749a68a commit eac5ce1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/omero/gateway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,6 @@ def __init__(self, conn=None, obj=None, cache=None, **kwargs):
self._conn.SERVICE_OPTS)
self.__prepare__(**kwargs)

def _repr_html_(self):
"""
Returns an HTML representation of the object. This is used by the
IPython notebook to display the object in a cell.
"""
return image_to_html(self)

def __eq__(self, a):
"""
Returns true if the object is of the same type and has same id and name
Expand Down Expand Up @@ -8136,6 +8129,13 @@ def getInstrument(self):
i = self._obj.instrument = meta_serv.loadInstrument(i.id.val, ctx)
return InstrumentWrapper(self._conn, i)

def _repr_html_(self):
"""
Returns an HTML representation of the object. This is used by the
IPython notebook to display the object in a cell.
"""
return image_to_html(self)

def _loadPixels(self):
"""
Checks that pixels are loaded
Expand Down

0 comments on commit eac5ce1

Please sign in to comment.