canvasxpress-magic
A %%cxplot IPython / Jupyter magic for
CanvasXpress — render an interactive chart straight from a notebook
cell, no HTML or JavaScript. Works in Jupyter, JupyterLab and VS Code notebooks; the chart is a
self-contained iframe that loads CanvasXpress from the CDN, so there is nothing to build.
Install
pip install canvasxpress-magic
Use
%load_ext canvasxpress_magic
Cell magic — the cell body is a JSON {"data", "config"} spec:
%%cxplot
{"data": {"y": {"vars": ["Revenue"],
"smps": ["Q1", "Q2", "Q3", "Q4"],
"data": [[10, 14, 9, 17]]}},
"config": {"graphType": "Bar", "title": "Quarterly Revenue"}}
Line magic — render a spec held in a Python variable:
spec = {"data": {...}, "config": {"graphType": "Line"}}
%cxplot spec
Both accept sizing flags:
%%cxplot --width 800 --height 500
{ ... }
data and config are exactly the arguments of new CanvasXpress({...}), so any spec from the
gallery or the R / Python packages works unchanged.
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-magic 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_magic-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for canvasxpress_magic-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canvasxpress_magic-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for canvasxpress_magic-0.1.0-py3-none-any.whl |
Total release size: 6.6 kB
Release files / canvasxpress_magic-0.1.0.tar.gz
| Download URL | canvasxpress_magic-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1c66f029f704dbebba10328d5ad0c0b44649230bd3ccff8bcd9f081cfbb0960
|
|
BLAKE2b-256 checksum How to use checksums |
fdbb0f592fb42b7df6d45ab6833d3f5e870c2bc2b0ed7c9412266c2e09f860ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / canvasxpress_magic-0.1.0-py3-none-any.whl
| Download URL | canvasxpress_magic-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6089f2dbcabc85a0d708c6980fe7fca7da3b75559507bf46805400d9742be23
|
|
BLAKE2b-256 checksum How to use checksums |
66ad6b98ffdc862e9acc5ee710d5ab73ddbda8ec31d163f3376b8399b2145442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for canvasxpress-magic 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.