scverse / scverse/napari-spatialdata

Coordinate system widget shown twice

Open
#286 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
90
Forks
25
Avg merge
22m
Merged PRs (30d)
1

Description

Discovered a weird bug.

If you run this script as a Python script

from spatialdata.datasets import blobs_annotating_element
from napari_spatialdata import Interactive

for name in ['blobs_polygons', 'blobs_circles']:
    sdata = blobs_annotating_element(name=name)
    Interactive(sdata)

Everything will look normal: a napari window will appear, you will close it and a second one will appear.

But if you run the same code in a Python console, due to the non-blocking behavior of the napari window, you will get an interface like this one, with two coordinate system widgets:

CleanShot 2024-08-09 at 16 03 33

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the example with blobs_annotating_element and Interactive in a Python console, then inspect the Interactive entry point and the coordinate-system widget setup. Confirm where the second widget is created and define done as one widget remaining when both visualizations are opened.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.