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

Update widget export to 7.0 #636

Closed
jasongrout opened this issue Aug 1, 2017 · 11 comments
Closed

Update widget export to 7.0 #636

jasongrout opened this issue Aug 1, 2017 · 11 comments
Milestone

Comments

@jasongrout
Copy link
Member

In order to keep live widget support in the html export, we'll need to figure out a way to support both 6.x and 7.x widget formats. At the very minimum, the script tag at

<script src="https://unpkg.com/jupyter-js-widgets@2.0.*/dist/embed.js"></script>
needs to be changed.

@mpacer
Copy link
Member

mpacer commented Aug 1, 2017

How does it need to be changed?

@jasongrout
Copy link
Member Author

@mpacer - I'm working on nailing down exactly what it changes to right now.

@mpacer mpacer added this to the 5.3.1 milestone Aug 21, 2017
@mpacer
Copy link
Member

mpacer commented Aug 21, 2017

Adding this as a soon-to-be released patch release since I don't want to wait on this to get 5.3 out the door if at all possible.

@jasongrout
Copy link
Member Author

The embedding changes needed are noted at http://ipywidgets.readthedocs.io/en/stable/migration_guides.html?highlight=migrate#updating-embedded-widgets

As noted in jupyter/nbviewer#717, it would be great if we could examine the metadata and see which widgets version we needed to embed.

Also, this ties into a larger conversation about how we provide custom renderers (in some sort of pluggable system).

@vidartf
Copy link
Contributor

vidartf commented Dec 14, 2017

Considering this was now fixed for nbviewer, is the solution transferable to nbconvert?

@jasongrout
Copy link
Member Author

Considering this was now fixed for nbviewer, is the solution transferable to nbconvert?

It's probably the same or very similar.

@vidartf
Copy link
Contributor

vidartf commented Jan 24, 2018

(nbviewer fixed this in jupyter/nbviewer#738)

@vidartf
Copy link
Contributor

vidartf commented Apr 9, 2018

A proposed fix based on jupyter/nbviewer#738 is available in #792.

@astrojuanlu
Copy link

If I understand correctly, when this is solved we will have interactive widgets in static HTML export, is that correct? Among the two linked PRs (#778 and #792) is there any preferred approach? Anything we can do to help moving this forward? Thanks!

@cornhundred
Copy link

cornhundred commented Sep 4, 2018

I think I'm having the same issue: I can view my interactive widget using NBViewer (or when copying an pasing the embed widgets output) but the widget is not rendering when I've saved the notebook as an HTML (from the notebook menu or using nbconvert from the command line). I also raised the issue here on the widget-ts-cookiecutter repo.

We frequently use widget embedding in static HTML files to share notebook results privately with collaborators by emailing them HTML files (who do now want to run Jupyter notebooks).

I see that the issue was closed by @SylvainCorlay in pull request #792, but has the updated version of nbconvert been released yet? If not, should I use a pre-release version of nbconvert?

Update: I cloned and pip installed the nbconvert repo and I'm able to generate an HTML file (link) with a working embedded widget using nbconvert from the command line but not from Jupyter notebook. Is there a way that I can get Jupyter notebook to use the locally installed version of nbconvert or is there a plan to release a new version of nbconvert with this functionality?

I also raised a similar issue about embedding the widget in a static HTML using Jupyter Lab here.

@benjcabalona1029
Copy link

I think I'm having the same issue: I can view my interactive widget using NBViewer (or when copying an pasing the embed widgets output) but the widget is not rendering when I've saved the notebook as an HTML (from the notebook menu or using nbconvert from the command line). I also raised the issue here on the widget-ts-cookiecutter repo.

We frequently use widget embedding in static HTML files to share notebook results privately with collaborators by emailing them HTML files (who do now want to run Jupyter notebooks).

I see that the issue was closed by @SylvainCorlay in pull request #792, but has the updated version of nbconvert been released yet? If not, should I use a pre-release version of nbconvert?

Update: I cloned and pip installed the nbconvert repo and I'm able to generate an HTML file (link) with a working embedded widget using nbconvert from the command line but not from Jupyter notebook. Is there a way that I can get Jupyter notebook to use the locally installed version of nbconvert or is there a plan to release a new version of nbconvert with this functionality?

I also raised a similar issue about embedding the widget in a static HTML using Jupyter Lab here.

Hi can you share how exactly you fixed this? thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants