Add offline embedded html embed-local.js embedded entry point.
See original GitHub issueAs discussed at maartenbreddels/ipyvolume#41 and jupyter-widgets/ipywidgets#1568
Add a save_js function to jupyter-widgets/ipywidgets/embed.py, to copy/paste all required javascript (currently embed.js, require.js, base.js, controls.js and index.js) to an external folder, such that the embedded html can call them locally.
This would also require a rewrite of embed.js to load the local javascript (rather than from unpkg.com). So either a duplicate version of embed.js with local links or, better, logic in the current embed.js to first look for local files then fall back to loading them from unpkg.com. @maartenbreddels already has this logic implemented in ipyvolume, although I can’t actually find the code lines that implement it?
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
From object to iframe — other embedding technologies
Select the Embed map option, which will give you some <iframe> code — copy this. Insert it into the Input box below, and...
Read more >Chapter 8. Embedding a Server for Offline Configuration
Embedding a Server for Offline Configuration. You can embed a JBoss EAP standalone server or host controller process inside the management CLI process....
Read more >Embed with the JavaScript Embedding Framework
The topics in this section explain how to use the JavaScript embedding framework to embed Oracle Analytics content into applications and web pages....
Read more >Play local (hard-drive) video file with HTML5 video tag?
It is possible to play a local video file. ... http://jsfiddle.net/dsbonev/cCCZ2/embedded/result,js,html,css/. Show code snippet.
Read more >Including JavaScript In Your Page
Writing the code in your HTML; Including it as a link to an external file. For the most part, you will include the...
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

Maybe ipywidgets should also add integrity checks for fixed version CDN scripts? C.f https://github.com/jupyter/jupyter.github.io/issues/204 (https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
Fixed by #1615.