Skip to main content

No project description provided

Project description

ipyniivue

A Jupyter Widget for Niivue based on anywidget.

Installation

pip install ipyniivue

Usage

In a Jupyter environment:

from ipyniivue import AnyNiivue

nv = AnyNiivue()
nv.load_volumes([{"path": "images/mni152.nii.gz"}])
nv

See the basic demo to learn more.

Development

This is an anywidget project. To get started create a virtual Python environment and install the necessary development dependencies.

python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]" 

Then, install JS dependencies with npm and run the dev server.

npm install
npm run dev

You can now start VS Code or JupyterLab to develop the widget. When finished, stop the JS development server.

NOTE: In order to have anywidget automatically apply changes as you work, make sure to export ANYWIDGET_HMR=1 environment variable.

Changelog:

v0.0.7

Change to traitlet approach

v0.0.5

Adding functions load_volumes, load_meshes, set_opacity, set_crosshair_width and set_crosshair_color.

v0.0.4

Setting up the project

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

ipyniivue-2.0.0.tar.gz (558.2 kB view hashes)

Uploaded Source

Built Distribution

ipyniivue-2.0.0-py2.py3-none-any.whl (563.2 kB view hashes)

Uploaded Python 2 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