a pandas dataframe interface for traitlets and pythreejs
Project description
Project: https://github.com/chrisjsewell/pandas3js
An extension for traitlets and pythreejs that:
Provides a 2-way pandas dataframe interface for trait objects.
Provides simple, high level geometries, with default json specified mappings to pythreejs primitives.
Creates bespoke 3D Graphics GUIs in the Jupyter Notebook with only a few lines of code.
From: pandas3js_example.ipynb
For more information, all functions contain docstrings with tested examples.
Installation
$ pip install pandas3js $ jupyter nbextension enable --py --sys-prefix pythreejs
pandas3js is integration tested against python versions 2.7, 3.4, 3.5 and 3.6
Technical Details
Employing a meta Model/View design; Unique geometry objects are stored in a GeometryCollection model object, which can be viewed as (and modified by) a pandas.DataFrame, containing objects (by row) and traits/object_type (by column). The GeometryCollection (and its objects) can then be directionally synced to a pythreejs.Scene (and pythreejs.3DObjects) view, via a json mapping specification.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pandas3js-0.1.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: pandas3js-0.1.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65290da8c442bce09b4ac7a9a75d324a9181ef480c786b70b4a9df2c883e5f6 |
|
MD5 | 1ec5ce55b95e196357196f9886175d0b |
|
BLAKE2b-256 | f521e20bc0ba26ce90f4fe52b0453418cb5837a9757743f76c94e01540dcd4d5 |