Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting the kernel fails to destroy the NiiVue object #39

Closed
christian-oreilly opened this issue Aug 18, 2023 · 0 comments
Closed

Restarting the kernel fails to destroy the NiiVue object #39

christian-oreilly opened this issue Aug 18, 2023 · 0 comments

Comments

@christian-oreilly
Copy link
Collaborator

In a notebook with cell #1:

import ipyniivue
nv = ipyniivue.Niivue(crosshair_color=[0,1,0,1])

Cell #2:

display(nv)

Cell #3:

nv.add_volume("https://niivue.github.io/niivue/images/mni152.nii.gz")
nv.set_slice_type(nv.slice_type.render)

If I run in order cells #1, #2, #3, restart the kernel, run cells #1, #2. At this point, the display from when I ran cell #3 before restarting the kernel is still displayed and responsive.

Note, this issue is not there if I have

Cell #1:

import ipyniivue
nv = ipyniivue.Niivue(crosshair_color=[0,1,0,1])
display(nv)

Cell #2:

nv.add_volume("https://niivue.github.io/niivue/images/mni152.nii.gz")
nv.set_slice_type(nv.slice_type.render)

And run #1, #2, restart, #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants