Skip to content

about Interactive(sdata) #344

Open
Open

Description

@szy23333

...zarr_path = "./Xenium_V1_humanLung_Cancer_FFPE_outs.zarr"
from spatialdata import SpatialData

from napari_spatialdata import Interactive

if name == "main":
sdata = SpatialData.read(zarr_path) # Change this path!
i = Interactive(sdata)
i

Image

Activity

  1. szy23333 commented on Jan 21, 2025

    @szy23333
    Author

    Why are there no images in the interactive interface?

  2. transferred this issue fromscverse/squidpyon Jan 29, 2025
  3. LucaMarconato commented on Jan 30, 2025

    @LucaMarconato
    Member

    Hi @szy23333, please select the coordinate system global, and then double click on the images you would like to visualize. This can be automated programmatically as shown in the code below:

    from napari_spatialdata import Interactive
    
    interactive = Interactive(sdata, headless=True)
    interactive.add_element(f"rasterized_002um", "global", view_element_system=True)
    interactive.run()

    which is taken from this notebook . Please find more details there.

    Also please check the documentation notebooks for napari-spatialdata here: https://spatialdata.scverse.org/projects/napari/en/latest/notebooks/spatialdata.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions