Open gjoseph92 opened 2 years ago
Hi @gjoseph92, I am myself using jupyter-sphinx a lot with geospatial data and I never experienced what you are describing. I'm always using the pydata-sphinx-theme or the sphinx-book-theme, could you switch your documentation to the latter and let me know if the bug persists ?
The ipyleaflet map embedded in https://stackstac.readthedocs.io/en/stable/examples/gif.html (it's right above the "Search for STAC items" heading) usually shows up the first time you open the page in a new browser, but subsequent times, usually nothing renders. If you switch to a different version (say, https://stackstac.readthedocs.io/en/v0.2.1/examples/gif.html), you might get it again once.
Maybe related to https://github.com/jupyter/jupyter-sphinx/issues/163#issuecomment-705108142?
Here's what I saw on a successful load:![Screen Shot 2021-10-28 at 7 18 46 PM](https://user-images.githubusercontent.com/3309802/139357505-65ec7af8-29a5-4af3-970e-211037608f4a.png)
And unsuccessful:![image](https://user-images.githubusercontent.com/3309802/139357489-a3038b0b-cb1c-41ab-9a3d-f83c3bcdb30a.png)
On the successful load, you can see it at least tries to load![Screen Shot 2021-10-28 at 7 20 37 PM](https://user-images.githubusercontent.com/3309802/139357685-e46cf596-bdda-40b3-a854-23f8531a18dd.png)
jupyter-leaflet.js
from https://stackstac.readthedocs.io/en/v0.2.1/examples/jupyter-leaflet.js, which 404s (because it's not there):But it then falls back to unpkg and succeeds:![Screen Shot 2021-10-28 at 7 20 44 PM](https://user-images.githubusercontent.com/3309802/139357688-c964009b-61cb-4988-b60d-9545a2ebfef4.png)
Whereas when nothing shows up, it doesn't even try to load
jupyter-leaflet.js
.Could there be some sort of race condition, maybe related to the other failures loading thebelab (or Gumshoe, or the mismatched anonymous define error), where a browser cache miss is giving a script enough time to kick off the JupyterLab load before it fails with one of these other errors? Just a wild guess.
If it helps at all, this is the notebook being rendered (uses a raw restructuredtext cell). And versions are: