-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
# This file is automatically generated by scripts/generate_options_mixin.py | ||
# Do not edit this file directly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is automatically generated with getters/setters for the front-end properties.
The default values for the |
I think we can add the demo later. I prefer not to check in notebooks right now as they cause many issues with version control. Ideally, we should have the examples from niivue/ipyniivue#50 organized nicely into some notebooks like (examples, etc). |
@kolibril13 I don't have write access to this repo so I cannot merge. |
Nice, Ive merged this pr now from the GitHub app. I will add you as a repo admin once I am back home |
Implements proposed API in niivue/ipyniivue#51 using the example from basic multi-planar as an example.
The volumes are reactive for
colormap
andopacity
. Meaning the above will change interactively with:Finally, I added a script in
script/generate_options_mixin.py
to generate the_options_mixin.py
file. This takes the defaults for all the viewer options and exposes reactive getters/setters for the values.Thus, you can change viewer-level properties like
slice_type
programatically: