Python bindings and JupyterLab integration for Perspective
Project description
# perspective-python
Python APIs for [perspective](https://github.com/finos/perspective) front end
[![Build Status](https://travis-ci.org/finos/perspective.svg?branch=master)](https://travis-ci.org/finos/perspective) [![GitHub issues](https://img.shields.io/github/issues/finos/perspective.svg)]() [![codecov](https://codecov.io/gh/finos/perspective/branch/master/graph/badge.svg)](https://codecov.io/gh/finos/perspective) [![PyPI](https://img.shields.io/pypi/v/perspective-python.svg)](https://pypi.python.org/pypi/perspective-python) [![PyPI](https://img.shields.io/pypi/l/perspective-python.svg)](https://pypi.python.org/pypi/perspective-python)
## Install
### Dependencies
You need to have [https://github.com/intel/tbb](TBB) installed as a system dependency:
On MacOS:
brew install tbb
### Installation
To install the base package from pip:
pip install perspective-python
To Install from source:
make install
To install the JupyterLab extension:
jupyter labextension install @finos/perspective-jupyterlab
or from source:
make labextension
## Getting Started
[Example Notebooks](https://github.com/finos/perspective/tree/master/python/perspective/examples)
## Developing To build perspective-python from source, you’ll need the following C++ dependencies:
Python 3.7
numpy
CMake
PyBind11
tbb
On MacOS, you should be able to install Boost, PyBind11, and tbb from brew:
`shell brew install pybind11 tbb `
And then install Python dependencies using pip:
`shell python3 -m pip install -r requirements-dev.txt `
Then run yarn build, and if a .perspectiverc config file has not been created yet, you’ll be taken through the yarn setup script. On the Focus section, type p for python, and continue through the script. Run yarn build again, and the python build should begin.
If you already have a .perspectiverc and want to reset your build configuration, simply run yarn setup.
Once the build successfully completes, run yarn test_python from the project root in order to verify operation.
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
File details
Details for the file perspective-python-0.4.1.tar.gz
.
File metadata
- Download URL: perspective-python-0.4.1.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/0.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf5e859020924d9adb9e29b0ffa33c73980e660d3767096a3a6f76106406ea7 |
|
MD5 | 7292811c2064fb2cc2f21f4ee809f371 |
|
BLAKE2b-256 | c5767ba5a81212a5f82ecd6003f305def81c3f9ff7f4486c3f303930a6b74274 |