ipyvolume.embed.embed_html not working for
See original GitHub issueI’m having trouble with embed_html
for ipyvolume 0.5.1
The html file seems to save (and the plain text content looks reasonable, the data should be in there) but when I try to open it in a browser I see a blank screen and get some javascript errors.
I used this code to test the html embedding, like you suggest here https://github.com/maartenbreddels/ipyvolume/issues/118#issuecomment-372821203:
import ipyvolume as ipv
import numpy as np
x, y, z = np.random.rand(3, 100)
fig = ipv.scatter(x, y, z)
ipv.embed.embed_html('test.html', fig)
I have:
- ipyvolume version 0.5.1
- ipywidgets version 7.4.1
- Chrome version 69.0.3497.92 (Official Build) (64-bit)
And these are the errors I’m getting in the Javascript development console:
unpkg.com/@jupyter-widgets/html-manager@0.14.4/dist/embed-amd.js:264289
Download the React DevTools for a better development experience: https://fb.me/react-devtools
You might need to use a local HTTP server (instead of file://): https://fb.me/react-devtools-faq
Failed to load resource: net::ERR_FILE_NOT_FOUND ipyvolume.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND jupyter-threejs.js:1
Falling back to https://unpkg.com/ for ipyvolume@~0.5.1 unpkg.com/@jupyter-widgets/html-manager@0.14.4/dist/embed-amd.js:300581
Falling back to https://unpkg.com/ for jupyter-threejs@~1.1.0 unpkg.com/@jupyter-widgets/html-manager@0.14.4/dist/embed-amd.js:300581
Failed to load resource: the server responded with a status of 404 () index.js:1
Refused to execute script from 'https://unpkg.com/ipyvolume@~0.5.1/dist/index.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. test.html:1
Could not instantiate widget unpkg.com/@jupyter-widgets/html-manager@0.14.4/dist/embed-amd.js:40870
require.min.js:1 Uncaught (in promise) Error: Script error for "ipyvolume"
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.min.js:1)
at HTMLScriptElement.onScriptError (require.min.js:1)
require.min.js:1 Uncaught (in promise) Error: Script error for "ipyvolume"
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.min.js:1)
at HTMLScriptElement.onScriptError (require.min.js:1)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
ipyvolume.embed.embed_html not working for #175 - GitHub
I'm having trouble with embed_html for ipyvolume 0.5.1 The html file seems to save (and the plain text content looks reasonable, ...
Read more >ipyvolume Documentation
Embedding in html. A bit of a hack, but it is possible to embed the widget and the bokeh part into a single...
Read more >ipyvolume Documentation - Read the Docs
The Jupyter lab extension is not enabled by default (yet). ... [11]: ipyvolume.embed.embed_html("bqplot.html", hbox, offline=True, ...
Read more >maartenbreddels/ipyvolume - Gitter
I basically want to embed the control js code here ... I am having performance issues and am trying to only show an...
Read more >Untitled
This is not super useful, but we can do better using a quiver plot: ... ipyvolume.embed.embed_html("testPage.html",myVBox,offline=False,devmode=False).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
issue resolved at unpkg
Hi, I have the same problem. Is there any other workaround than installing the developer version?