Renumics / spotlight

Interactively explore unstructured datasets from your dataframe.

Home Page:https://renumics.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hidden columns are shown

luca-bondi opened this issue · comments

Describe the bug
Starting with version 1.0.0, the hidden parameter in Dataset.append_column is not respected, and all columns are shown.
Up to version 0.15.0 this was working correctly.

To Reproduce
Steps to reproduce the behavior:

from tempfile import TemporaryDirectory

from renumics.backstage import Dataset
from renumics import spotlight


with TemporaryDirectory() as tmp_dir:
    spotlight_file = Path(tmp_dir).joinpath("spotlight.h5")
    with Dataset(spotlight_file, "w") as dataset:
        dataset.append_float_column("colA", values=[1, 2, 3])
        dataset.append_string_column("colB", values=["a", "b", "c"], hidden=True)

    viewer = spotlight.show(spotlight_file)

Expected behavior
Columns with the hidden attribute set should not be visible by default.

Screenshots

v.1.4.0 - hidden column colB is visible
v1 4 0

v0.15.0 - hidden column colB is hidden
v0 15 0

Desktop (please complete the following information):

  • OS: macOS Ventura 13.6
  • Browser: Edge 117.0.2045.47, Chrome 117.0.5938.132, Firefox 102.15.1esr
  • Spotlight Version: 1.0.0 onward

Additional context
None

Hey, thank you for reporting this bug!
As with #254, we removed this functionality while reorganizing our code.
We already merged a fix and will ship it with the next release (possibly later today).