Skip to content

Fix script tag for notebook renderers#5154

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

Merged
merged 1 commit into from
Apr 25, 2025
Merged

Conversation

marthacryan
Copy link
Collaborator

@marthacryanmarthacryan commented Apr 25, 2025

This updates the notebook renderer to use a plain script tag when embedding all of plotly.js rather than using <script type="module">. This fixes#4953. For more context on JS modules, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules.

Some context:

@emilykl
Copy link
Contributor

Not my area but I have no objection if this fixes the issue and doesn't break anything else

@marthacryan
Copy link
CollaboratorAuthor

Also this has been tested by someone who was encountering this issue and it works! #4953 (comment)

Copy link
Collaborator

@alexcjohnsonalexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 Makes sense to me.

@marthacryanmarthacryan merged commit ab3fbbd into mainApr 25, 2025
6 checks passed
@marthacryanmarthacryan deleted the fix-script-tag branch April 28, 2025 16:24
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
@marthacryan@emilykl@alexcjohnson
close