Skip to main content

canvasxpress-streamlit

CanvasXpress interactive charts in Streamlit apps — no JavaScript build step. The library is loaded from the CanvasXpress CDN inside Streamlit's component iframe.

Install

pip install canvasxpress-streamlit

Use

import streamlit as st
from canvasxpress_streamlit import canvasxpress

st.title("CanvasXpress in Streamlit")

canvasxpress(
    data={
        "y": {
            "vars": ["Revenue"],
            "smps": ["Q1", "Q2", "Q3", "Q4"],
            "data": [[10, 14, 9, 17]],
        }
    },
    config={"graphType": "Bar", "title": "Quarterly Revenue"},
    height=420,
)

data and config are exactly the arguments of new CanvasXpress({...}) in JavaScript, so any spec from the gallery or the R / Python packages works unchanged.

Parameters

Argument Type Default Meaning
data dict {} CanvasXpress data object.
config dict {} CanvasXpress configuration (graphType, title, …).
width int 600 Canvas width in pixels.
height int 400 Canvas height in pixels.
key str None Optional Streamlit widget key.

License

This package is MIT-licensed. The CanvasXpress JavaScript library it loads is distributed separately under the CanvasXpress Community License (Attribution), free with a visible attribution mark and with commercial terms for mark removal — see https://www.canvasxpress.org/license.html. https://canvasxpress.org/license.html.

Metadata

Release files for canvasxpress-streamlit 0.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 canvasxpress-streamlit 0.1.1
File Size Uploaded
canvasxpress_streamlit-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for canvasxpress-streamlit 0.1.1
File Interpreter ABI Platform
canvasxpress_streamlit-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.5 kB

Release files / canvasxpress_streamlit-0.1.1.tar.gz

Download URL canvasxpress_streamlit-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cedaef74d4d3a0caacb6bf52e41d664c0cafd452ba888d1b4f2057abaf1f67e9
BLAKE2b-256 checksum
How to use checksums
77d83bf85080b4548451246530843f30a4d64a119f7a480b0cd7288714de9b9e
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 15, 2026.

Transparency log

Release files / canvasxpress_streamlit-0.1.1-py3-none-any.whl

Download URL canvasxpress_streamlit-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
370fe1a8eacaa79ed8da80be482d68a41843fc786bd59a7d666e6bbea7e626fb
BLAKE2b-256 checksum
How to use checksums
857f25fc151d73bc972bac124ad4d42ebd8e7b83f4e4177f804afc8925fd4d25
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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