Skip to content

show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell

License

Notifications You must be signed in to change notification settings

alexisthual/ipyniivue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipyNiiVue

Try out in mybinder: Binder
display and interact with a NIfTI image in a WebGl 2.0 canvas within a Jupyter notebook cell

Installation

git clone https://github.com/niivue/ipyniivue
cd ipyniivue
yarn
yarn run build
pip install -e .
jupyter lab

Usage

example usage

from ipyniivue import Niivue

nv = Niivue(logging=True)
volumes = [
    {
        'url': 'https://niivue.github.io/niivue/images/mni152.nii.gz',
        'opacity': 1,
        'visible': True,
    }
]
nv.load_volumes(volumes)
nv

example

About

show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 50.6%
  • TypeScript 39.5%
  • JavaScript 9.6%
  • Shell 0.3%