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
Comments
How does it need to be changed? |
@mpacer - I'm working on nailing down exactly what it changes to right now. |
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. |
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). |
Considering this was now fixed for nbviewer, is the solution transferable to nbconvert? |
It's probably the same or very similar. |
(nbviewer fixed this in jupyter/nbviewer#738) |
A proposed fix based on jupyter/nbviewer#738 is available in #792. |
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).
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. |
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
nbconvert/nbconvert/templates/html/full.tpl
Line 14 in db30363
The text was updated successfully, but these errors were encountered: