-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error displaying widget
for ImageTexture in Textures example with JupyterLab
#165
Comments
Thanks for the report. I'm looking into it, but got side tracked by something else. Which version of jupyterlab and which version of pythreejs are you using? |
I'm using jupyterlab version 0.31.8 and pythreejs version 1.0.0b6. I also tried using absolute paths for the png files but that didn't fix the issue. |
Good find! I need to make it a routine to also check all the examples in lab. This best solution to this follows jupyter-widgets/ipywidgets#1993. |
Interesting. |
The texture is supposed to be a URL, so you might have success with an absolute URL. |
The problem with not displaying absolute URLs seems to be a browser security related issue. |
This is now fixed in master, and will be available with the next release (requires latest version of ipywidgets lab extension). |
The two ImageTexture objects
checker_tex
andearth_tex
cannot be rendered with jupyterlab.data_tex
can be rendered correctly.With a jupyter notebook everything works as expected.
The console gives the following output:
The text was updated successfully, but these errors were encountered: