Python bindings and JupyterLab integration for Perspective
Python APIs for perspective front end
perspective-python can be installed from pypi with
pip install -v perspective-python
perspective-python is a C++ library at its core, the installation process is a little more
complex than pure-Python projects. When submitting issues on GitHub
related to installation/dependencies, please make sure to include the verbose logs from
pip install -v.
Wheels are currently distributed for:
- MacOS (Python 3.7, Python 2.7)
For Linux and Windows, source distributions are available from
PyPi. For proper installation of the source distribution
(as it requires your machine to build the C++ extension), make sure the following dependencies are installed:
- A C++ compiler (platform-dependent)
- On Windows, use Microsoft Visual Studio 2017 (MSVC 14.1).
pyarrow==0.15.1 is a build dependency and must be installed before installing Perspective:
pip install pyarrow==0.15.1
All other dependencies (Python and C++) will be installed as part of the
pip install process.
perspective-python in JupyterLab, make sure
perspective-python has already been
installed successfully from
Afterwards, install the extension from Jupyter's extension registry:
jupyter labextension install @finos/perspective-jupyterlab
perspective-python, additional C++ dependencies are required (on top of CMake and a C++ compiler):
On MacOS, you should be able to install Boost, PyBind11, and tbb from brew:
brew install boost pybind11 tbb
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
Once the build successfully completes, run
yarn test_python from the project root in order to verify operation.
perspective-python attempts to build utilizing Microsoft Visual Studio 2017 (MSVC 14.1). You may change this to an older version by editing
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size perspective_python-0.4.8-cp37-cp37m-macosx_10_13_x86_64.whl (2.4 MB)||File type Wheel||Python version cp37||Upload date||Hashes View|
|Filename, size perspective-python-0.4.8.tar.gz (3.1 MB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for perspective_python-0.4.8-cp37-cp37m-macosx_10_13_x86_64.whl