ICESAT-2HackWeek / coastal_topobathy

Team project aimed at extracting sections of tracklines, and identifying bathymetry and coastal morphology - can be extended to other questions!
https://icesat-2hackweek.github.io/coastal_topobathy/
4 stars 7 forks source link

More problems with ipyleaflet plots in docs #12

Open eeholmes opened 2 years ago

eeholmes commented 2 years ago

In order to render a notebook with an ipyleaflet plot into markdown, the widget state needs to be saved which can be done from within JupyterLab or classic notebooks. This so far has worked for the plots. But now the geemap plots in https://icesat-2hackweek.github.io/coastal_topobathy/examples/AK_topobathy_vis.html don't fully save the widget state. The polygons in the plots at the bottom don't show up. Nothing I have tried has successfully saved the widget state for these plots.

But I have yet to find a way that one can export an ipyleaflet plot to png. Essentially do a "screenshot" and save that. On stackoverflow, the recommendation is to do just that: manually take a screenshot!

eeholmes commented 2 years ago

I give up. I have tried the following with no success.

eeholmes commented 2 years ago

Problem seems to be with the widget saving after the first widget. So first plot is ok, but subsequent ones won't have layers.