From eac5ce1e58cf61c69c584da8534cbd4fb71650e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= <38459088+jo-mueller@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:05:45 +0200 Subject: [PATCH] move `repr_html` to `_ImageWrapper` --- src/omero/gateway/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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