Spaces:
Sleeping
Download README.md from EAT-Prototypes/jellyscope: direct link, hf CLI and curl.
- Browser
- Download file 3.64 kB
-
https://huggingface.co/spaces/EAT-Prototypes/jellyscope/resolve/main/README.md
- Command line
-
hf download hf://spaces/EAT-Prototypes/jellyscope/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EAT-Prototypes/jellyscope/resolve/main/README.md
title: Jellyscope
emoji: π
colorFrom: indigo
colorTo: pink
sdk: docker
app_port: 5000
pinned: false
Jellyscope
Interactive web application for visualizing JWST jellyfish galaxy datacubes.
Jellyscope lets you explore multi-filter NIRCam datacubes, select regions of galaxies (clumps, tails, disk), and inspect their physical properties.
Live demo: https://huggingface.co/spaces/EAT-Prototypes/jellyscope
Requirements
- Python 3.13+
- uv package manager
Installation
uv sync --extra dev
Usage
uv run jellyscope --data-dir data
Then open http://127.0.0.1:5000 in your browser.
Options
--host HOST Server host (default: 127.0.0.1)
--port PORT Server port (default: 5000)
--data-dir DIR Path to data directory (default: data)
Run with Docker
Alternatively, run Jellyscope as a containerized service via Docker Compose. No local Python or uv required β only Docker.
just docker build # docker compose build
just docker up # docker compose up -d
Then open http://localhost:5000.
The local ./data/ directory is bind-mounted read-only at /data inside the container. Override CLI flags ad-hoc:
docker compose run --rm jellyscope --help
Tear down with just docker down.
Data Format
Place your data in the data/ directory:
- FITS datacubes β 3D arrays with shape
(n_filters, ny, nx)andFILTER1..FILTERnheader keys - clumps_properties.csv β Columns:
clump_id, area_pix, area_arcsec2, r_eff_arcsec, x0, y0, area_kpc2, r_eff_kpc, inside, component - clumps_pixels.csv β Columns:
clump_id, x, y
Development
This project uses modern Python tooling managed via uv and a justfile (install with brew install just on macOS).
just # List available recipes
just install # Install deps + set up pre-commit hooks
just check lint # Run ruff linter
just check lint-fix # Auto-fix lint issues
just check format # Format code with ruff
just check typecheck # Run mypy type checking
just check test # Run tests with coverage
just check test-fast # Quick test run (no coverage, stop on first failure)
just check all # Run ALL checks (lint + format + typecheck + tests)
just check spellcheck # Check for typos in code/docs
just serve # Start the dev server
just docker build # Build the Docker image
just docker up # Start the containerized service
just docker down # Stop the containerized service
just docker logs # Tail container logs
just clean # Remove build artifacts
Tooling
| Tool | Purpose |
|---|---|
| uv | Package management, venv, lockfile |
| ruff | Linting + formatting |
| mypy | Static type checking |
| pre-commit | Git hooks (lint, format, typecheck before each commit) |
| codespell | Typo detection |
Project Structure
src/jellyscope/
βββ config.py # Configuration
βββ data/ # FITS I/O, clump catalog, data store
βββ model/ # Pydantic request/response schemas
βββ visualization/ # Plotly figure builders (image, RGB)
βββ web/ # FastAPI app, REST API, frontend
βββ cli.py # Command-line entry point
License
MIT