Skip to content

Commit 17f5015

Browse files
committed
show table selections
1 parent ff7c93a commit 17f5015

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

explore_high_dimensional_data/explore_high_dimensional_data.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,11 @@ def _(chart, mo):
195195
def _(chart, data, mo, show_selection, table):
196196
mo.stop(not len(chart.value))
197197

198-
selected_rows = show_selection(data, list(chart.value["index"]))
198+
selected_rows = (
199+
show_selection(data, list(chart.value["index"]))
200+
if table.value.is_empty()
201+
else show_selection(data, list(table.value["index"]))
202+
)
199203

200204
mo.md(
201205
f"""

0 commit comments

Comments
 (0)