Skip to main content

✨ panel-mosaic

CI conda-forge pypi-version python-version

A Panel extension for Mosaic visualizations backed by DuckDB.

Features

  • Render declarative Mosaic and vgplot specifications in Panel.
  • Query data in DuckDB from the browser, returning only aggregate results instead of embedding full tables in the page.
  • Support linked views and cross-filtering through Mosaic selections.

Pin your version!

This project is in its early stages, so if you find a version that suits your needs, it’s recommended to pin your version, as updates may introduce changes.

Installation

Install it via pip:

pip install panel-mosaic-viz

Usage

import duckdb
import panel as pn

from panel_mosaic import Mosaic

pn.extension()

con = duckdb.connect()
con.execute("CREATE TABLE points AS SELECT * FROM (VALUES (1, 2), (2, 4), (3, 3)) AS t(x, y)")

Mosaic(
    {
        "plot": [
            {"mark": "dot", "data": {"from": "points"}, "x": "x", "y": "y"},
        ]
    },
    con=con,
).servable()

Development

git clone https://github.com/panel-extensions/panel-mosaic
cd panel-mosaic

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]
pre-commit run install
pytest tests

For the full Github Actions setup use pixi:

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

This repository is based on copier-template-panel-extension (you can create your own Panel extension with it)!

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.

❤️ 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 panel-mosaic-viz 0.1.2

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

Source distribution (sdist)

Source distribution for panel-mosaic-viz 0.1.2
File Size Uploaded
panel_mosaic_viz-0.1.2.tar.gz 190.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for panel-mosaic-viz 0.1.2
File Interpreter ABI Platform
panel_mosaic_viz-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 199.1 kB

Release files / panel_mosaic_viz-0.1.2.tar.gz

Download URL panel_mosaic_viz-0.1.2.tar.gz
Size 190.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7ac4210d580f85cad583b82bdb674c09f0042c758577f19cba2d25d0e9bdd939
BLAKE2b-256 checksum
How to use checksums
9d0d128d6ca5ba42de503d67378cf67cadd41492e0437eb2668c5ce24a4746ba
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 Sep 11, 2026.

Transparency log

Release files / panel_mosaic_viz-0.1.2-py3-none-any.whl

Download URL panel_mosaic_viz-0.1.2-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b1ee484ab734e93ccd6fc2a21db901cf1c1c4ec142a3b1ba9b634d204f0bff2
BLAKE2b-256 checksum
How to use checksums
407bd944fe861477a70b807e0683abcdfc8fcb71a0a74f0df48d2cdb348a6792
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 Sep 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

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