spectacular-charts
Linked, crossfiltered charts for Python and Jupyter, described in JSON instead of written as plotting code.
Describe the charts you want, and the chart types follow from the columns. Then brush a range in any chart and every other chart filters to the rows inside it. The filtering runs in the browser, in a crossfilter written in Rust and compiled to WebAssembly, so it stays interactive on large tables. Python reads back what you selected.
pip install "spectacular-charts[notebook]"
import spectacular as sp
df = sp.datasets.plate() # 2,400 readings of a 96-well plate
w = sp.view({
"title": "A 96-well growth plate",
"labels": {"od600": "OD600", "time_h": "time (h)"},
"charts": [
{"x": "time_h", "y": "od600", "color": "medium"}, # two numbers: a scatter
{"x": "medium"}, # a category: bars
{"x": "rate", "bins": 40}, # a number: a histogram
{"x": "medium", "y": "rate"}, # a category and a number: a strip
],
}, data=df)
w
Brush the histogram, click a bar, and then, in the next cell:
w.selection # {"selected": 380, "rows": 2400, "filters": [{"view": ..., "field": "rate", "range": [0.52, 0.61]}, ...]}
w.selected_data() # the brushed rows of df
Or skip Python altogether: after import spectacular, a cell can hold only the
description.
%%spectacular df
{"charts": [{"x-axis": "time_h", "y-axis": "od600", "color": "medium"}, {"x": "rate"}]}
Why describe charts?
- No plotting code. A description is plain data.
"x-axis","X axis"and"x_axis"are one key, andod600finds the columnOD600. - Mistakes come back at the key you wrote, with a suggestion:
/charts/0/y: no column "od60"; did you mean "od600"?. - Programs and models can write it. The JSON is easy to generate and check, and
sp.validatereturns problems as{"path", "message"}. - Linked by default. Every chart in a description filters every other one.
Twelve chart types
How the type is chosen, and a description for each picture: Chart types.
Figures and pages
sp.render(description, "figure.pdf", data=df, width=85, unit="mm") # SVG, PDF or PNG at print size
sp.save_html(description, "plate.html", data=df) # one offline, interactive file
w.save_svg("brushed.svg") # what the charts show now
Themes: "light", "dark", "paper" (for print) and "auto". Colours: a column, one
colour, a list, or a column's own palette shared by every chart. Category order:
domains.
Install
pip install spectacular-charts # descriptions, validation, offline pages, the CLI
pip install "spectacular-charts[notebook]" # + interactive charts in Jupyter (anywidget)
pip install "spectacular-charts[render]" # + figures; then: python -m playwright install chromium
The import name is spectacular. Wheels for Linux, macOS and Windows carry the browser
runtime and a native spectacular command (compiled Rust) that compiles descriptions,
validates specs and writes pages without Node:
spectacular compile chart.json --data readings.csv # the view spec a description makes
spectacular validate spec.json --json # problems by path; exit 1 if any
spectacular html chart.json --data readings.csv -o readings.html
Documentation
- Documentation: quickstart, guide, reference
- Describing charts and every key
- Brushing and selections
- Python API
- For AI agents: the description language on one page
- Changelog
Source, issues and the full view-spec format:
github.com/fullscreen-triangle/spectacular
(branch rebuild). MIT licence.
Metadata
Release files for spectacular-charts 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spectacular_charts-0.2.1.tar.gz | 422.1 kB | With provenance | Details for spectacular_charts-0.2.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| spectacular_charts-0.2.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for spectacular_charts-0.2.1-py3-none-win_amd64.whl |
| spectacular_charts-0.2.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for spectacular_charts-0.2.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| spectacular_charts-0.2.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for spectacular_charts-0.2.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| spectacular_charts-0.2.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for spectacular_charts-0.2.1-py3-none-macosx_11_0_arm64.whl |
| spectacular_charts-0.2.1-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for spectacular_charts-0.2.1-py3-none-macosx_10_12_x86_64.whl |
Total release size: 5.9 MB
Release files / spectacular_charts-0.2.1.tar.gz
| Download URL | spectacular_charts-0.2.1.tar.gz |
|---|---|
| Size | 422.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69ad52b9e01ded63bad0e3e265b0b969471cc695fcce3bd846ba56eda6bae72d
|
|
BLAKE2b-256 checksum How to use checksums |
378ffa331d60d292432e3b174b56df772b3640658806b41b4e0a3d4f7a108c25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / spectacular_charts-0.2.1-py3-none-win_amd64.whl
| Download URL | spectacular_charts-0.2.1-py3-none-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9513740b1c41927252578f05af4bd7d4f4b05d07f711cd935d91b42208e74c73
|
|
BLAKE2b-256 checksum How to use checksums |
65ab6e31a5ecb4567927cd3009c5ad3a2d3020c0692b373c5aa6474db1ca9234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / spectacular_charts-0.2.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | spectacular_charts-0.2.1-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
fda93048cb28e5fefae1cec6166187eea1764f4207c1e61d2ab4f2a03d6cf669
|
|
BLAKE2b-256 checksum How to use checksums |
04ae23293f3f16a1f69150d31e572a4227744dbbaf424c2fb2746fed7dc721cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / spectacular_charts-0.2.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | spectacular_charts-0.2.1-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
91544a7c2cb61f7014d90344d12cfb9e06978b737c3d8afcfa44878f650c08fb
|
|
BLAKE2b-256 checksum How to use checksums |
f39ac3ecf08fbd6d80c28db88db0d612aedce939eb0b4bbf591ee6913978c982
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / spectacular_charts-0.2.1-py3-none-macosx_11_0_arm64.whl
| Download URL | spectacular_charts-0.2.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f0d67bb991332c8e50390ac840e32f127c9a88f02615bade2b2111860753b68d
|
|
BLAKE2b-256 checksum How to use checksums |
e56f71716d02161100cb0db09659c667b2bfb12920502799518c684d26c20349
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logRelease files / spectacular_charts-0.2.1-py3-none-macosx_10_12_x86_64.whl
| Download URL | spectacular_charts-0.2.1-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ce1d254dad03676ccf38dafa49cb111beef276f8cb7bdc7f50ae3b1346c7cc60
|
|
BLAKE2b-256 checksum How to use checksums |
872c7e90820b8fa4f1cd6a63b5f77452ed381777e9098ed95ba0cac2bf828762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 21, 2026.
Transparency logSecurity for spectacular-charts 0.2.1
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 6 files in this release have been uploaded with provenance metadata.
Attestation for spectacular_charts-0.2.1.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 Nov 21, 2026.
Transparency logA 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.