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

#636 fixed widget display for both formats #778

Closed
wants to merge 1 commit into from

Conversation

scottdraves
Copy link

@scottdraves scottdraves commented Mar 7, 2018

Fix #636 using the same approach as we used on jupyter/nbviewer#717

@scottdraves
Copy link
Author

scottdraves commented Mar 8, 2018

@jasongrout @minrk @mpacer

function addWidgetsRenderer() {
var mimeElement = document.querySelector('script[type="application/vnd.jupyter.widget-view+json"]');
var scriptElement = document.createElement('script');
var widgetRendererSrc = 'https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this always be unpinned, or should we be picking a version?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@mpacer mpacer Mar 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some comments to explain the reasoning behind it this entire function? Also please include a pointer to jason's documentation in the comments.

@mpacer
Copy link
Member

mpacer commented Mar 19, 2018

Could you add a test for this new functionality?

@lmitusinski
Copy link

I am not sure if we can add meaningfull unit tests for this change. When html output is generated it has js function that will load propper script according to used notebook/widget version. To check if this work correct we need to evaluate java script code and check if widget was displayed properly after that.

@SylvainCorlay
Copy link
Member

Closing as fixed in #792.

@MSeal MSeal added this to the no action milestone Sep 8, 2020
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 this pull request may close these issues.

Update widget export to 7.0
6 participants