question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ipyvolume.embed.embed_html not working for

See original GitHub issue

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, 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
maartenbreddelscommented, Oct 1, 2018

issue resolved at unpkg

0reactions
bahsaeedcommented, Oct 11, 2021

Hi, I have the same problem. Is there any other workaround than installing the developer version?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found