Volume Viewer Jupyter Notebook Extension
Embeds the Allen Institute web-based 3d viewer in Jupyter notebooks
Description
Most 3D viewers are far too heavyweight to use for quick visualization tasks when experimenting with tractably-sized (analyzing, checking, ...) 3D volumetric datasets. nbvv is a multichannel volume viewer for interactive data exploration in jupyter. This is a jupyter widget that provides volumetric rendering given a multiple channel zstack as a numpy array.
Envisioned user group is anyone who wants a robust and quick way to interactively interrogate volumetric data as part of their workflows; domain which motivated development is multi-channel volumetric light/fluorescence microscopy datasets. The viewer is optimized for volume data that has finer xy resolution than z resolution.
Installation
To install from source:
You will need to make sure nodejs and npm are installed on your system.
One way to do this is using nvm, for example:
nvm install 14.17.0
nvm use 14.17.0
Make sure you have jupyterlab, jupyter notebook and nbextensions installed (not necessary in every environment):
pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install --user
Install nbvv in one of these ways:
- Option 1: Install from PyPi
pip install nbvv jupyter nbextension install --py nbvv --sys-prefix jupyter nbextension enable nbvv --py --sys-prefix - Option 2: Run
build.shfrom this repo - Option 3: Step-by-step, from source:
pip install -e . jupyter nbextension install --py --overwrite --symlink --sys-prefix nbvv jupyter nbextension enable --py --sys-prefix nbvv jupyter labextension develop . --overwrite
Documentation
Extended documentation is not available yet. When completed it will be made available at: allen-cell-animated.github.io/nbvv.
Quick Start
try the demo notebook:
jupyter notebook examples/demo.ipynb
or likewise with jupyterlab:
jupyter lab examples/demo.ipynb
In a Jupyter notebook, load or create volume data in a numpy array. The data should be of shape (Z,Y,X) or (C,Z,Y,X) for multi-channel data. Display the numpy data using
import nbvv
nbvv.volshow(mynumpydata, spacing=(1.0, 1.0, 4.0), channel_names=my_list_of_channel_name_strings)
volshow also provides an optional viewer_height parameter if you want to make the viewer larger in the notebook. Default is 500 and values should be specified in CSS pixels.
Development
See CONTRIBUTING.md for information related to developing the code.
Metadata
Release files for nbvv 1.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nbvv-1.6.2.tar.gz | 47.8 MB | Without provenance | Details for nbvv-1.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nbvv-1.6.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for nbvv-1.6.2-py2.py3-none-any.whl |
Total release size: 47.8 MB
Release files / nbvv-1.6.2.tar.gz
| Download URL | nbvv-1.6.2.tar.gz |
|---|---|
| Size | 47.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37feedf86578f63203dc971850a613da8fce3cf1a4159133701868c0560bce35
|
|
BLAKE2b-256 checksum How to use checksums |
d85371d91c03324aa76a999a065f4bd8270493115ded025808c2b6b83b83962e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / nbvv-1.6.2-py2.py3-none-any.whl
| Download URL | nbvv-1.6.2-py2.py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bc20c3d64ef6746a843b0dc6f670e8b872762852a2b9f896a81a6af9e3f80c1a
|
|
BLAKE2b-256 checksum How to use checksums |
dfff5d829cd7dfdb8a0178ff0e6ddf7b11ed3aff88e15fda0da979394a1b79df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Security for nbvv 1.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.