niivue / ipyniivue

A WebGL-powered Jupyter Widget for Niivue based on anywidget
BSD 2-Clause "Simplified" License
25 stars 8 forks source link

NiiVueView syncing across cells #19

Closed AnthonyAndroulakis closed 1 year ago

AnthonyAndroulakis commented 1 year ago

If an ipyniivue.Niivue instance has already been displayed and then is displayed again in a different cell, the older display becomes non-interactive. The reason for the current implementation is multifold: 1) any callbacks and states for the NiiVue instance will be saved (ie transferred to each new NiivueView) 2) previous views of the NiivueModel will be saved (frozen/non-interactive). This allows for viewing progress over cells.

The reason for marking this as enhancement is for others to provide ideas for this feature (if there are use cases that require syncing behavior).

AnthonyAndroulakis commented 1 year ago

Closing. See https://github.com/niivue/ipyniivue/blob/main/docs/development-notes/cell-syncing.md for more info.