Skip to main content

Vega visual grammar for trame

Test and Release

trame-vega extend trame widgets with a Figure component that is capable of rendering Vega grammars such as Altair plots.

Installing

trame-vega can be installed with pip:

pip install --upgrade trame-vega

Usage

The Trame Tutorial is the place to go to learn how to use the library and start building your own application.

The API Reference documentation provides API-level documentation.

License

trame-vega is made available under the BSD-3 License. For more details, see LICENSE This license has been chosen to match the one use by Vega and Altair which are either used within that trame widget or will be use by the user to create the content for those Figures.

Community

Trame | Discussions | Issues | RoadMap | Contact Us

https://zenodo.org/badge/410108340.svg

Enjoying trame?

Share your experience with a testimonial or with a brand approval.

Example: Vega + Altair

The Python interface of Altair provide examples on how to create various visualization.

import altair as alt
from vega_datasets import data

from trame.widgets import vega

# Generate chart
source = data.cars()
fig = (
    alt.Chart(source)
    .mark_circle()
    .encode(
        alt.X(alt.repeat("column"), type="quantitative"),
        alt.Y(alt.repeat("row"), type="quantitative"),
        color="Origin:N",
    )
    .properties(width=200, height=200)
    .repeat(
        row=["Horsepower", "Acceleration", "Miles_per_Gallon"],
        column=["Miles_per_Gallon", "Acceleration", "Horsepower"],
    )
    .interactive()
)

# Display it
widget = vega.Figure(figure=None) # could pass fig at construction
widget.update(fig) # or update later

Metadata

Release files for trame-vega 2.1.1

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

Source distribution (sdist)

Source distribution for trame-vega 2.1.1
File Size Uploaded Provenance Actions
trame-vega-2.1.1.tar.gz 339.6 kB Without provenance Details for trame-vega-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trame-vega 2.1.1
File Interpreter ABI Platform Actions
trame_vega-2.1.1-py3-none-any.whl Python 3 none any Details for trame_vega-2.1.1-py3-none-any.whl

Total release size: 679.7 kB

Release files / trame-vega-2.1.1.tar.gz

Download URL trame-vega-2.1.1.tar.gz
Size 339.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a3d82f7535a66a782262647001987dba3ad0ddc64ce21225a4cfccd351fed8fa
BLAKE2b-256 checksum
How to use checksums
0a49f16acec3712162cd7ceb7704bf96985b96851c322f3b686d49fbff3cf51e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.10.0 readme-renderer/43.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.2.1 tqdm/4.66.2 importlib-metadata/7.0.2 keyring/24.3.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

Release files / trame_vega-2.1.1-py3-none-any.whl

Download URL trame_vega-2.1.1-py3-none-any.whl
Size 340.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
044ea338f74fe83e7a5eca15fd1723b3b5f2847d5ca0ed2f0325e30d7676b6c9
BLAKE2b-256 checksum
How to use checksums
2d8c47d805003a34bd544b702d0fbc82ac064458b438fc7fd7c7122d1c7f30db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.10.0 readme-renderer/43.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.2.1 tqdm/4.66.2 importlib-metadata/7.0.2 keyring/24.3.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

Security for trame-vega 2.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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