babyplots - Easy, fast, interactive 3D visualizations
Babyplots is an easy to use library for creating interactive 3d graphs for exploring and presenting data. This is the python API that allows you to create babyplots visualizations in Jupyter notebooks.
Find the full documentation here.
Install
You can install the babyplots package using pip:
pip install babyplots
Usage
Once imported, you can create a babyplots visualization using the Babyplot class and adding plots to it. To display your visualization, simply call the object:
from babyplots import Babyplot
bp = Babyplot()
bp.add_plot(coordinates, "pointCloud", "categories", clusters, {"colorScale": "Paired"})
bp
Below is a minimal example using the Iris data set:
import numpy as np
from sklearn import decomposition
from sklearn import datasets
from babyplots import Babyplot
np.random.seed(5)
iris = datasets.load_iris()
X = iris.data
y = iris.target
iris = datasets.load_iris()
X = iris.data
y = iris.target
bp_iris = Babyplot(background_color="#262626ff")
bp_iris.add_plot(X, "shapeCloud", "categories", y, {"shape": "sphere", "colorScale": "Set2", "showAxes": [True, True, True], "axisLabels": ["PC 1", "PC 2", "PC 3"]})
bp_iris
You can see this example (and a few more) in a demo notebook here.
Full Documentation
For the complete documentation of babyplots and its python API, please visit https://bp.bleb.li/documentation/python.
Support, Questions, Feedback, ...
Join our Discord server!
Support the work on babyplots
Using babyplots will always be free for everybody. But if you really like it and want to show your appreciation, you may buy us a coffee :)
Also see:
- babyplots_lib, the underlying javascript library
- Babyplots as an R package
Libraries used in babyplots:
- Babylon.js, the rendering engine
- Chroma.js, the color conversion library
- CCapture.js, for capturing gifs
Author
Babyplots was created by Nils Trost
License
Released under the Apache 2.0 License.
Find the licenses of the included libraries here. Make sure to include this file if you use babyplots in your project.
Metadata
Release files for babyplots 1.7.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 |
|---|---|---|---|---|
| babyplots-1.7.0.tar.gz | 2.0 MB | Without provenance | Details for babyplots-1.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| babyplots-1.7.0-py3-none-any.whl | Python 3 | none | any | Details for babyplots-1.7.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / babyplots-1.7.0.tar.gz
| Download URL | babyplots-1.7.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5854eccf621289be4e3dea3d93c040991a4c0494cdd9b15b86f1bc2e56d93462
|
|
BLAKE2b-256 checksum How to use checksums |
474b15e9807058296f4ef479f64caf01a059448e0302fcb3ca417b832ea550e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Release files / babyplots-1.7.0-py3-none-any.whl
| Download URL | babyplots-1.7.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
813653ae57df5333375443a45924969dcdc60bd1757c8a19507251cd6726fd15
|
|
BLAKE2b-256 checksum How to use checksums |
6b6c5d9791eca911b9b49db9f27005a682472144e61f5fce8685e754da1138ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
|
Security for babyplots 1.7.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.