Bringing interactivity to plotnine
Project description
ninejs
Bring interactivity to plotnine charts.
ninejs lets you add tooltips and hover grouping to plotnine plots directly from aes(...), then export the result as standalone HTML.
Quick start
from plotnine import aes, geom_point, ggplot, theme_minimal
from plotnine.data import anscombe_quartet
from ninejs import css, interactive, save
gg = (
ggplot(
anscombe_quartet,
aes(x="x", y="y", color="dataset", tooltip="dataset", data_id="dataset")
)
+ geom_point(size=7, alpha=0.5)
+ theme_minimal()
)
(
interactive(gg)
+ css(from_dict={".tooltip": {"font-size": "2em"}})
+ save("plot.html")
)
Installation
pip install ninejs
Documentation
See the full documentation and examples here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ninejs-0.0.3.tar.gz.
File metadata
- Download URL: ninejs-0.0.3.tar.gz
- Upload date:
- Size: 100.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68a8bc082e7d78e4a5536ffb9c42aec5107014d91d4bcd00fc0122f562396cb9
|
|
| MD5 |
ac879e0399aa8c89ee939baa01f7a675
|
|
| BLAKE2b-256 |
6d6b75287155f40878bfa26ba1829bd90aceb7b85bfa154b5441d048fd37e764
|
Provenance
The following attestation bundles were made for ninejs-0.0.3.tar.gz:
Publisher:
pypi.yaml on y-sunflower/ninejs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ninejs-0.0.3.tar.gz -
Subject digest:
68a8bc082e7d78e4a5536ffb9c42aec5107014d91d4bcd00fc0122f562396cb9 - Sigstore transparency entry: 1569801419
- Sigstore integration time:
-
Permalink:
y-sunflower/ninejs@1536ce12aaab6f5cb5749601907c5c61ea6ec7c1 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/y-sunflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@1536ce12aaab6f5cb5749601907c5c61ea6ec7c1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ninejs-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ninejs-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
792e68ff68fa948b82350122cac9bf5aeec699707a04b3c07000c9952c02a90d
|
|
| MD5 |
ad51c1ab6f6c1a7264b84b882f85ed68
|
|
| BLAKE2b-256 |
3b310b3c3311e704f4c15f9c8b1581fdde14a4aa06fc9114df4bd9cbd32a1639
|
Provenance
The following attestation bundles were made for ninejs-0.0.3-py3-none-any.whl:
Publisher:
pypi.yaml on y-sunflower/ninejs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ninejs-0.0.3-py3-none-any.whl -
Subject digest:
792e68ff68fa948b82350122cac9bf5aeec699707a04b3c07000c9952c02a90d - Sigstore transparency entry: 1569801522
- Sigstore integration time:
-
Permalink:
y-sunflower/ninejs@1536ce12aaab6f5cb5749601907c5c61ea6ec7c1 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/y-sunflower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@1536ce12aaab6f5cb5749601907c5c61ea6ec7c1 -
Trigger Event:
push
-
Statement type: