glue-viz / glue-wwt

WorldWideTelescope viewer in glue
BSD 3-Clause "New" or "Revised" License
2 stars 6 forks source link

Save WWT interactive figure #62

Open jsub1 opened 5 years ago

jsub1 commented 5 years ago

Addresses #46 by using the pywwt interactive figure work (WorldWideTelescope/pywwt#215). This PR adds the option to save the current view to a zip file with an HTML page and supporting script and data files.

astrofrog commented 3 years ago

@jsub1 - sorry this never got merged! Can you rebase and resolve the conflicts?

astrofrog commented 2 years ago

@Carifio24 - could you see if this can be rebased/wrapped up?

pkgw commented 2 years ago

Note that the save_as_html_bundle infrastructure is still in pywwt for now, but it's based on the much older JS/HTML implementation from before we got everything tidied up. I think the code should still work, but it might have some issues, and it would definitely be nice to pull the pywwt implementation up to use the Research App framework.

Carifio24 commented 2 years ago

I played around with this a bit, and while the basic setup save_as_html_bundle still works, it can't export a view that has any layers because the time_decay layer attribute (added after this functionality was implemented) is currently not JSON serializable.

Adding the serialization support should be straightforward, and then this would work until we get around to modifying it to use the research app.

Carifio24 commented 1 year ago

@astrofrog With https://github.com/WorldWideTelescope/pywwt/pull/332 and https://github.com/WorldWideTelescope/pywwt/pull/345 this should be working now (it will work with only 332, but won't properly export point sizes). Maybe we want to add some sort of pywwt-version-based enabling? I don't have the proper permissions to rebase this since it's not my branch.