Close #18 by returning a sankee.SankeyPlot from sankee.sankify and sankee.Dataset.sankify instead of the plotly.Figure. The SankeyPlot renders an ipywidgets.VBox that contains the plotly.Figure and buttons to interactively toggle classes on and off in the plot.
The plotly.Figure can still be accessed through the plot attribute of the SankeyPlot, and some backwards compatibility is maintained by a) allowing the SankeyPlot to be rendered directly as if it were a widget and b) wrapping the update_layout method.
The changes above required a major refactor, and most of the plotting functionality was simplified. The core module was renamed to plotting, and all of the Earth Engine sampling functionality was moved into a sampling module. An example_data module was also added.
Close #18 by returning a
sankee.SankeyPlot
fromsankee.sankify
andsankee.Dataset.sankify
instead of theplotly.Figure
. TheSankeyPlot
renders anipywidgets.VBox
that contains theplotly.Figure
and buttons to interactively toggle classes on and off in the plot.The
plotly.Figure
can still be accessed through theplot
attribute of theSankeyPlot
, and some backwards compatibility is maintained by a) allowing theSankeyPlot
to be rendered directly as if it were a widget and b) wrapping theupdate_layout
method.The changes above required a major refactor, and most of the plotting functionality was simplified. The
core
module was renamed toplotting
, and all of the Earth Engine sampling functionality was moved into asampling
module. Anexample_data
module was also added.