这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@colombod
Copy link
Member

Handle plotly loading via require js in both jupyter and nteract

else {
renderPlotly();
}");
newScript.AppendLine("</script>");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use PocketView rather than add a dependency on HtmlAgilityPack?

Copy link
Member Author

Choose a reason for hiding this comment

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

we need parsing anyway to select the div and script element from the xplot html

Copy link
Contributor

Choose a reason for hiding this comment

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

Can't they just be rendered as separate script elements?

Copy link
Member Author

Choose a reason for hiding this comment

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

The script tag injects the other script element conditionally if requrirejs is not defined, they cannot be 2 tags

@colombod colombod force-pushed the feature/xplot_nteract branch from 1ae84cf to e1aa3fd Compare August 21, 2019 00:29
@colombod colombod merged commit 26cd857 into dotnet:master Aug 21, 2019
@colombod colombod deleted the feature/xplot_nteract branch August 21, 2019 11:23
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.

3 participants