jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
943 stars 188 forks source link

Automatic publicPath is not supported in this browser #395

Closed maartenbreddels closed 1 year ago

maartenbreddels commented 1 year ago

I'm trying to support ipyvolume/pythreejs in solara, but I'm getting: "Automatic publicPath is not supported in this browser"

Any pointers where a change happened in pythreejs where this changed?

maartenbreddels commented 1 year ago

Hmm, also seeing this in the (classic) notebook now. Starting from a new virtual env, pythreejs doesn't seem to work (2.4.1)

merlinND commented 1 year ago

I am encountering this issue in classic notebooks as well with these versions:

notebook==6.5.2
ipywidgets==8.0.4
jupyterlab_widgets==3.0.5
pythreejs==2.4.1
widgetsnbextension==4.0.5

This particular combination of versions (found in another Issue) works, though I haven't tested the effect of each downgrade individually:

ipywidgets==7.7.2
jupyterlab_widgets==1.1.1
pythreejs==2.3.0
widgetsnbextension==3.6.1

In both cases, testing in Chrome 110.0.5481.77 on Ubuntu 22.04.

vidartf commented 1 year ago

I don't think any change was made in pythreejs, but I think a change was recommended? https://ipywidgets.readthedocs.io/en/stable/migration_guides.html#updating-the-webpack-publicpath-configuration Maybe it will work with that?

maartenbreddels commented 1 year ago

Weird, it's with the classic notebook extension. Maybe for some reason, the extension fails, and it will try to fallback to the CDN, which then fails. I'll investigate more.

vidartf commented 1 year ago

This should be fixed in 2.4.2 that I just pushed to PyPI. Please try it and see if it resolves the issue.

maartenbreddels commented 1 year ago

Yes, thanks a lot @vidartf !