A scatter plot extension for Jupyter Notebook and Lab
Project description
jscatter
A lightweight but scalable scatter plot extension for Jupyter Lab and Notebook
Why? After embedding data we want to explore the embedding space, which typically involves three things besides plotting the data as a 2D scatter. First, we want to interactively adjust the view (e.g., via panning & zooming) and the visual point encoding (e.g., the point color, opacity, or size). Second, we want to be able to select/highlight points. And third, we want to compare multiple embeddings (e.g., via animation, color, or point connections). The goal of jscatter is to support all three requirements and scale to millions of points.
How? Internally, jscatter is using regl-scatterplot
Development
Requirements:
- Conda >= 4.8
Installation:
git clone https://github.com/flekschas/jscatter/ jscatter && cd jscatter
conda env create -f environment.yml && conda activate jscatter
pip install -e .
Enable the Notebook Extension:
jupyter nbextension install --py --symlink --sys-prefix jscatter
jupyter nbextension enable --py --sys-prefix jscatter
Enable the Lab Extension:
jupyter labextension develop jscatter
After Changing Python code: simply restart the kernel.
After Changing JavaScript code: do cd js && npm run build
and reload the browser tab.
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
Built Distribution
Hashes for jupyter_scatter-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cb8756af691f5b32097ef0c0e4956de454c7d6d00b347d703e99d063929958c |
|
MD5 | 8132edd345fad9b9ca745723a1d366c5 |
|
BLAKE2b-256 | d4ac8c686b753cac3dbcb51831ef78058964346fed15ad5336f910c8490ed77c |