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

Fix script tag for notebook renderers #5154

merged 1 commit into from
Apr 25, 2025

Conversation

marthacryan
Copy link
Collaborator

@marthacryan marthacryan 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

emilykl commented Apr 25, 2025

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

@marthacryan
Copy link
Collaborator Author

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

Copy link
Collaborator

@alexcjohnson alexcjohnson 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.

@marthacryan marthacryan merged commit ab3fbbd into main Apr 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants