# Spatial scatter "library\_id" warning

**URL:** <https://discourse.scverse.org/t/spatial-scatter-library-id-warning/4043>\
**Category:** squidpy\
**Created:** [August 19, 2026, 8:07am UTC](https://discourse.scverse.org/t/spatial-scatter-library-id-warning/4043 "2026-08-19T08:07:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![albi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/albi/32/1597_2.png) [@albi](https://discourse.scverse.org/u/albi)\
**Post date:** [August 19, 2026, 8:07am UTC](https://discourse.scverse.org/t/spatial-scatter-library-id-warning/4043/1 "2026-08-19T08:07:17Z")

</div>

Hi! I am working with a CosMx dataset where spatial coordinates are originally defined per FOV. CosMx also provides coordinates transformed into a global coordinate system, which I use to visualize all FOVs belonging to a TMA core together.

I am plotting the cells with:

```python
sq.pl.spatial_scatter(
    sdata,
    spatial_key="global",
    shape=None,
    connectivity_key="global_connectivities",
)

```

This produces the warning:

```plaintext
WARNING: Please specify a valid `library_id` or set it permanently in `adata.uns['spatial']`

```

I am having trouble understanding why a `library_id` is needed in this case. I am using `shape=None` and only want to make a scatter plot in my custom global coordinate system, without plotting a tissue image, is `library_id` actually necessary here? How do I silence the warning?

Thanks!
