JupyterLab extension adding data visualisation widgets.
Project description
Jupyter ProtoPype: jppype
Jupyter extensions adding ipywidgets specialized for data-view. It is designed as a frontend for ProtoPype (to be released) but can be used as a standalone.
The widgets work both with Jupyter Notebook and Jupyter Lab.
Installation
To install use pip:
pip install jppype
Usage
Import jppype in your notebook and use the widgets:
import jppype as jpp
2D image viewer
viewer = jpp.View2D()
# Supported image formats: numpy array, torch tensor
image = np.random.rand(100, 100)
viewer.add_image(image)
viewer
Features coming...
-
Widgets
- 2D image viewer
- Color images layer
- Label layer
- Graph layer
- Vector Field layer
- Table viewer
- 2D image viewer
-
Python interactivity
- Add/Update/Remove layers
- Callback on click
- Async request of user selection (point, area, node, edge...)
Development Installation
Pull the latest version of the repository
git clone https://github.com/gabriel-lepetitaimon/jppype.git
cd jppype
For a development installation (requires Node.js and Yarn version 1):
conda create -n jppype python=3.10
conda install -c conda-forge yarn nodejs
Download the npm dependencies:
cd ts-src
npm install
cd ...
Upgrade jupyter-lab to version 4.0.0 if necessary:
pip install -U jupyterlab
Install the python package and the extensions in development mode (this stage may take a while as it will build the jupyterlab extension):
pip install -e .[dev]
jupyter nbextension install --py --symlink --overwrite --sys-prefix jppype
jupyter nbextension enable --py --sys-prefix jppype
If you which to develop for JupyterLab, also run the command:
jupyter labextension develop --overwrite jppype
Then you need to rebuild the JS when you make a code change:
cd ts-src
jlpm clean
jlpm build
or automatically rebuild when a file changes:
cd ts-src
npm watch
You then need to refresh the JupyterLab page when your javascript changes.
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
File details
Details for the file jppype-0.1.1.1.tar.gz
.
File metadata
- Download URL: jppype-0.1.1.1.tar.gz
- Upload date:
- Size: 301.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 309024bf509d96e87a484b5bbe9e4ee0e4c81f9ebf72c0f91dceb33c66efaec9 |
|
MD5 | c5e50c7263a098b03306542ede50ce79 |
|
BLAKE2b-256 | f1d179b513b5afa4ebb8bfb3dab28a450f1cad51cec36fdeb5c4eaa721558548 |
File details
Details for the file jppype-0.1.1.1-py3-none-any.whl
.
File metadata
- Download URL: jppype-0.1.1.1-py3-none-any.whl
- Upload date:
- Size: 400.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a1a884eaa40c805d86dbd292a7ad169ffc8e7de503f33d61bfbf335a8dbd2e8 |
|
MD5 | 482f8beb95a6323d33f7eef16bce8349 |
|
BLAKE2b-256 | 874e5112d7b382d4d90114e663d3ee36ef0d7e69726e438e17646847b6fed782 |