Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
marthacryan merged 1 commit into main from fix-script-tag
Apr 25, 2025
Merged

Fix script tag for notebook renderers #5154

marthacryan merged 1 commit into main from fix-script-tag
Apr 25, 2025

Conversation

@marthacryan
Copy link
Collaborator

@marthacryan marthacryan commented Apr 25, 2025
edited
Loading

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:

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

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.

emilykl reacted with hooray emoji
@marthacryan marthacryan merged commit ab3fbbd into main Apr 25, 2025
6 checks passed
@marthacryan marthacryan deleted the fix-script-tag branch April 28, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alexcjohnson alexcjohnson alexcjohnson approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Plots not shown in HTML export for "vscode+notebook" renderer

AltStyle によって変換されたページ (->オリジナル) /