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
Dual-licensed. The core library is LGPL-3.0-or-later; commercial terms are available — see
https://canvasxpress.org/license.html.
Metadata
Release files for canvasxpress-streamlit 0.1.0
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 |
|---|---|---|---|---|
| canvasxpress_streamlit-0.1.0.tar.gz | 2.5 kB | Without provenance | Details for canvasxpress_streamlit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canvasxpress_streamlit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for canvasxpress_streamlit-0.1.0-py3-none-any.whl |
Total release size: 5.6 kB
Release files / canvasxpress_streamlit-0.1.0.tar.gz
| Download URL | canvasxpress_streamlit-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1df560ecd235efcc8e32b8c4a31e32b6e0f11e1016db6067a4250c56fbd43668
|
|
BLAKE2b-256 checksum How to use checksums |
93b0a3238040084ecbeb60dd0301c43d9211aa30385ef2108778f67355a115c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / canvasxpress_streamlit-0.1.0-py3-none-any.whl
| Download URL | canvasxpress_streamlit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00a467ce4c59062f96b0420f160feb2ed26ce278c3ef1b29ebd036b6531c5014
|
|
BLAKE2b-256 checksum How to use checksums |
8dd6da067db0a047ef9fab7a6fb53f7136d942d27d8887c984e4f29823d7f6e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for canvasxpress-streamlit 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.
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.