Skip to main content

✨ lumen-anndata

CI conda-forge pypi-version python-version

https://github.com/user-attachments/assets/466b8310-70a7-45d6-8e32-5cf60011c7b8

Overview

lumen-anndata is an extension to enable Lumen to interact with anndata objects, a common format for single-cell genomics data. It aims to allow researchers to use natural language to explore, analyze, and visualize complex single-cell datasets through a chat interface.

Features

lumen-anndata supports the following capabilities:

  • Natural language querying of anndata objects
  • Integration with select scanpy functions for running analysis and static plotting
  • Interactive visualization of single-cell data (UMAP, DotMap, HeatMap, Dendrogram, etc.) with HoloViz

Installation

Install it via pip:

pip install lumen-anndata

Usage

To launch the Lumen app, run:

lumen-anndata


Development

git clone https://github.com/holoviz-topics/lumen-anndata
cd lumen-anndata

For a simple setup use uv:

uv venv
source .venv/bin/activate # on linux. Similar commands for windows and osx
uv pip install -e .[dev]
uv pip install "git+https://github.com/holoviz/lumen@main#egg=lumen[ai-llama]"
pre-commit run
pytest tests

For the full Github Actions setup use pixi:

pixi run pre-commit-install
pixi run postinstall
pixi run test

This repository is adapted from copier-template-panel-extension

To update to the latest template version run:

pixi exec --spec copier --spec ruamel.yaml -- copier update --defaults --trust

Note: copier will show Conflict for files with manual changes during an update. This is normal. As long as there are no merge conflict markers, all patches applied cleanly.

To update the embeddings to use a new version of scanpy, increment the version in scripts/embed_docs.py and run:

python scripts/embed_docs.py

Ensure you have an OpenAI API key set in your environment variables. You can set it in your terminal session with:

export OPENAI_API_KEY="sk-..."

❤️ Contributing

Contributions are welcome! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/YourFeature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/YourFeature.
  5. Open a pull request.

Please ensure your code adheres to the project's coding standards and passes all tests.

Metadata

Release files for lumen-anndata 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lumen-anndata 0.1.0
File Size Uploaded Provenance Actions
lumen_anndata-0.1.0.tar.gz 2.5 MB With provenance Details for lumen_anndata-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lumen-anndata 0.1.0
File Interpreter ABI Platform Actions
lumen_anndata-0.1.0-py3-none-any.whl Python 3 none any Details for lumen_anndata-0.1.0-py3-none-any.whl

Total release size: 5.0 MB

Release files / lumen_anndata-0.1.0.tar.gz

Download URL lumen_anndata-0.1.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b46b622bb81a2fe8d1a1e24fbea5a4ab332ba0d673bd489540b5d41d0f0ab661
BLAKE2b-256 checksum
How to use checksums
62b07f60f91863dcdb99ab4ef155d39f81da075907e73bca4e87381496709103
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Release files / lumen_anndata-0.1.0-py3-none-any.whl

Download URL lumen_anndata-0.1.0-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0d3bcb163a7388fa628ac4dd8f881b6a7c9e7aa536538e485fc1bd351a2fe021
BLAKE2b-256 checksum
How to use checksums
2b0f9c6c6bc92d815e5fd7eac506581e97d10058e557f895667828f57ff08384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

Security for lumen-anndata 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lumen_anndata-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page