Python Package Guide#

This guide documents the cellucid Python package: how to prepare datasets, run servers, embed the viewer in notebooks, and integrate Python with the web UI (hooks/events).

If you’re looking for the end-user web UI docs (loading data, filtering, analysis, annotation), start with Web App Guide.

Where to start (pick one)#

Chapters (what each folder contains)#

Landing Pages

Quickstarts and entry points: installation, first run, and “what should I do next?” pages.

Landing Pages
Concepts & Mental Models

How the Python package maps data → exports/servers → the web viewer, plus core terminology you’ll see across docs.

Concepts and Mental Models (Python-side)
Data Preparation API

prepare(...) and export-time options (fields, gene IDs, embeddings, vector fields) for reproducible, high-performance viewing.

Data Preparation API (prepare/export) — The Big One
Viewing APIs

How to view data: serve(...), serve_anndata(...), show(...), and show_anndata(...) (Jupyter embedding and server mode).

Viewing APIs (serve / serve_anndata / show / show_anndata + loading options)
Jupyter Hooks (Python ↔ Frontend)

React to selection/hover/click events and send commands back to the viewer (highlight, color-by, visibility).

Jupyter Hooks System (Python ↔ Frontend)
Notebook Tutorials

Long-form notebook-style tutorials and “copy/paste” workflows for common analysis and visualization patterns.

Notebooks / Tutorials (Very Detailed, Step-by-Step)
API Reference Coverage

A map of what parts of the Python API are documented where (useful for maintainers and contributors).

API Reference Coverage (and the canonical API reference)
Developer Docs

Implementation notes, architectural decisions, and debugging patterns for the Python package.

Developer Docs (Python Package)
Troubleshooting Index

Symptom → diagnosis → fix for installation, exports, servers, Jupyter embedding, and performance issues.

Global Troubleshooting Index (Python)
API Reference

Complete reference for all functions and classes in the Cellucid Python package.

API Reference (cellucid-python)