enjalot / latent-scope

A scientific instrument for investigating latent spaces
MIT License
565 stars 19 forks source link

[bug] Documentation example cells do not load on Safari (Desktop or Mobile) #43

Closed hydrosquall closed 2 months ago

hydrosquall commented 4 months ago

Currently the examples only load in some browsers, like Chrome (haven't tested Firefox). In Safari desktop/mobile, the example analysis pages looks like this for the interactive cells

image

In case adding cross-browser support for the interactive cells is tricky, we could alternately display a fallback banner encouraging users to switch browsers, or display an image instead.

hydrosquall commented 4 months ago

Ah - it looks like this missing function only affects older (pre March 2023) versions of Safari on desktop, newer versions should be OK. It would still be nice to polyfill, but maybe this is a concern for Observable Framework rather than specific to latent-scope.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import.meta/resolve

enjalot commented 2 months ago

going to close for now since it seems to be an observable framework thing.