glue-viz / glue-plotly

Experimental plot.ly plugin for glue
BSD 3-Clause "New" or "Revised" License
2 stars 8 forks source link

Add export tools for bqplot viewers #45

Closed Carifio24 closed 1 year ago

Carifio24 commented 1 year ago

This PR resolves #41. This is accomplished by some modification to the common functionality (for the image viewer, in particular), to use state as input whenever possible. Additionally, this adds export tools for the bqplot scatter, histogram, profile, and image viewers. These export tools use the viewer's output widget to create a file chooser dialog in order to the user to select the location of the HTML output.

Edit: I should note that I also tried implementing the file choosing dialog using tkinter (see this branch), but it behaved very badly for me on macOS even with some attempts to work around the issues.