diff --git a/src/omero/gateway/__init__.py b/src/omero/gateway/__init__.py index 1017792e3..0d5e6a5ac 100644 --- a/src/omero/gateway/__init__.py +++ b/src/omero/gateway/__init__.py @@ -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 @@ -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