We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92ddef7 commit 699da68Copy full SHA for 699da68
1 file changed
src/ipyaladin/widget.py
@@ -880,7 +880,16 @@ def add_table(
880
{"event_name": "add_table", "options": table_options},
881
buffers=[table_bytes.getvalue()],
882
)
883
- self.get_overlays()
+ if not self._ready:
884
+ warnings.warn(
885
+ "The table has not yet finished loading into the widget, so the "
886
+ "overlays list has not been updated. Please call `get_overlays()` "
887
+ "to update the list.",
888
+ UserWarning,
889
+ stacklevel=2,
890
+ )
891
+ else:
892
+ self.get_overlays()
893
894
@widget_should_be_loaded
895
def add_graphic_overlay_from_region(
0 commit comments