I just tried exporting a jupyter notebook comprising a cell generated with ipyniivue. I exported it as an html file in order to see what kind of information would be embedded in the document.
In place of the output of the widget, there is a textual description of the widget. This was what I expected would happen, but I'd be interested to hear if you have plans for users to export static HTML files in the future!
load object/volume/mesh into niivue -> turn into array base64 string and save into notebook
output should be self-contained
NiivueModel should store the array of base64 strings (and other data about model state)
when a new cell is run (ie NiivueView rendered), an update() function should be called that reads the array of base64 strings and displays the niivue instance
I just tried exporting a jupyter notebook comprising a cell generated with ipyniivue. I exported it as an html file in order to see what kind of information would be embedded in the document.
In place of the output of the widget, there is a textual description of the widget. This was what I expected would happen, but I'd be interested to hear if you have plans for users to export static HTML files in the future!
Thank you for the nice library anyways! :blush:
Jupyter notebook
Exported HTML file