Visualize using substrate. For Jupyter notebooks.
Project description
pytri
A python wrapper for substrate.
What is Pytri?
Pytri is a data visualization library for 3D rendering in a Jupyter notebook.
Why not use...?
- Matplotlib: 3D support is a second-class citizen; matplotlib's strengths are in 2D.
- Plotly: Plotly is a great, powerful library, but it has a complex, non-ideomatic API.
- threejs Python libraries: These are great, but support basic geometry operations better than high-level data visualization.
Under the hood, pytri uses substrate, a fast, layer-based visualization framework built upon threejs. And importantly, pytri visualizations persist when you export a jupyter notebook to HTML!
Installation and Configuration
New Hotness:
pip install -U pytri
Old and Busted:
- Clone the repository.
git clone https://github.com/aplbrain/pytri.git
- Install all dependencies.
pip3 install -r requirements.txt
pip3 install -U .
Usage
from pytri import pytri
p = pytri()
p.axes()
p.scatter([[1, 2, 3], [4, 5, 6]])
p.show()
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
pytri-0.5.0.tar.gz
(289.2 kB
view hashes)
Built Distribution
pytri-0.5.0-py2.py3-none-any.whl
(292.6 kB
view hashes)
Close
Hashes for pytri-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b345439c9e37c90cec3aa673fec658bcaaa478752bc7a38ba8e1980928eeb62c |
|
MD5 | 085f9c648923788fe6d4c88b8a49fb09 |
|
BLAKE2b-256 | 836c6688503db29654e07e12006dda88e3ee9b9ca5c5003a00dfe27a9ae8e02e |