Skip to main content

A volume slicer for Dash

Project description

CI

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

dash-slicer-0.1.0.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

dash_slicer-0.1.0-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page