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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file ipyniivue-2.0.0.tar.gz.

File metadata

  • Download URL: ipyniivue-2.0.0.tar.gz
  • Upload date:
  • Size: 558.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for ipyniivue-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0af31252f3f25f13dec6cd3fd2c6bfc6deb94455adbe6619c0648c2101af2e47
MD5 e760507926bcb2599099e910efaca448
BLAKE2b-256 cd9d997fbcfecee3b0295932d4c0b51857185a1929703cadb30198d49f7d242a

See more details on using hashes here.

File details

Details for the file ipyniivue-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ipyniivue-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 563.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for ipyniivue-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6d2629fef305b86ad4d3b827757a12b42505a392491c73a63b6ad43d70aab1f7
MD5 095a2556212cdf0885c38a55eb63c4ad
BLAKE2b-256 23f22b8d1baec11673e371c1fd0cc0fa9c6333da027d8f3a8e2c3b35fc00d4c3

See more details on using hashes here.

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