Debian Codegraph @

jupyter-widgets-html-manager/lib/index.js

raw
1 // Copyright (c) Jupyter Development Team.
2 // Distributed under the terms of the Modified BSD License.
3 export * from './htmlmanager';
4 export { requireLoader } from './libembed-amd';
5 export const version = require('../package.json').version;
6 export function generateEmbedScript(widgetState, imageDataUrl) {
7 return `<img src=${imageDataUrl} class="jupyter-widget">
8 <script type="application/vnd.jupyter.widgets-state+json">${JSON.stringify(widgetState)}</script>`;
9 }
10 //# sourceMappingURL=index.js.map