Skip to content

Use modern native ES6 import to load plotly.js bundle instead of requirejs which is no longer under active development #4763

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 10 commits into from
Oct 21, 2024
Prev Previous commit
Next Next commit
Update to the module type and native es6 import
  • Loading branch information
marthacryan committed Sep 12, 2024
commit c3fc5c8813d0bdd305d69cc79cd9864cec6ee6f5
2 changes: 1 addition & 1 deletion packages/python/plotly/plotly/io/_base_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def activate(self):
{win_config}
{mathjax_config}
</script>
<script src=\"{plotly_cdn}\" charset="utf-8"></script>
<script type="module">import \"{plotly_cdn}\"</script>
""".format(
win_config=_window_plotly_config,
mathjax_config=_mathjax_config,
Expand Down