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.

Add offline embedded html embed-local.js embedded entry point.

See original GitHub issue

As 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:closed
  • Created 6 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
vidartfcommented, Aug 7, 2017

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).

0reactions
jasongroutcommented, Aug 11, 2017

Fixed by #1615.

Read more comments on GitHub >

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

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