A volume slicer for Dash
Project description
dash_slicer
A volume slicer for Dash
Status
This work is marked as alpha - some essential features are still in development, and some parts of the API may change in future releases.
Installation
$ pip install dash-slicer
Dash-slicer depends on Python 3.6+ plus some dependencies.
Usage example
import dash
import dash_html_components as html
from dash_slicer import VolumeSlicer
import imageio
app = dash.Dash(__name__)
vol = imageio.volread("imageio:stent.npz")
slicer = VolumeSlicer(app, vol)
app.layout = html.Div([slicer.graph, slicer.slider, *slicer.stores])
if __name__ == "__main__":
app.run_server()
License
This code is distributed under MIT license.
Developers
-
Make sure that you have Python with the appropriate dependencies installed, e.g. via
venv
. -
Run
pip install -e .
to do an in-place install of the package. -
Run the examples using e.g.
python examples/slicer_with_1_view.py
-
Use
black .
to autoformat. -
Use
flake8 .
to lint. -
Use
pytest .
to run the tests.
On every PR, an app with the same name as your branch is deployed to the Dash playground instance so that you can change whether your changes did not break the package.
Project details
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 dash_slicer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed3e9da617596ddc90e2c61e2173dbcfa0c8f9dbad919f848899bd25eead2cc6 |
|
MD5 | 7fbb8236225c7a02a19e6bfade2927b3 |
|
BLAKE2b-256 | 57e0ae3aebf3d80ee4c4e6567c7f630b2ebeea016da2c8f0f0d8cb6f758b3478 |