Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding widgets into static HTML files from Jupyter Notebook and Lab #875

Open
cornhundred opened this issue Sep 5, 2018 · 1 comment
Labels
format:HTML pertains to exporting to the HTML format

Comments

@cornhundred
Copy link

The latest un-released nbconvert (after pull request #792) is able to generate HTML files with embedded widgets when nbconvert is run in the terminal.

Is there a timetable for releasing a new version of nbconvert that works from the Jupyter Notebook or Jupyter Lab? Currently saving an HTML with widgets from the Jupyter notebook does not produce notebooks with correctly rendered widgets. I raised a similar issue here.

@akhmerov
Copy link
Member

akhmerov commented Sep 7, 2018

Comparing the html exported from the notebook (v5.6.0) with the output of using nbconvert directly (v5.4.0 of course) reveals the source of the problem:

15c15
<     var widgetRendererSrc = '@jupyter-widgets/html-manager@*/dist/embed-amd.js';
---
>     var widgetRendererSrc = 'https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js';
23c23
<         widgetRendererSrc = 'jupyter-js-widgets@*/dist/embed.js';
---
>         widgetRendererSrc = 'https://unpkg.com/jupyter-js-widgets@*/dist/embed.js';

So it appears that the notebook does not correctly set the prefix of the js libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format:HTML pertains to exporting to the HTML format
Projects
None yet
Development

No branches or pull requests

3 participants