Skip to main content

Visualize using substrate. For Jupyter notebooks.

Project description

substrate

pytri

A python wrapper for substrate.
CircleCI PyPI version

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


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)

Uploaded Source

Built Distribution

pytri-0.5.0-py2.py3-none-any.whl (292.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page