Skip to content

Clean plotly.py dependencies insertion to avoid duplicate in HTML output #12882

Open
@cderv

Description

@cderv

Following research in

by @gordonwoodhull and I

It appears that Plotly.py is inserting dependencies that we may not be needed in Quarto rendering.

  • plotly.js is inserted twice by plotly.py - see Support for plotly.py 6+  #12842 analysis.

  • Mathjax is inserting also by Plotly.py. We already insert Mathjax in HTML output when there is math in the document.
    Maybe we should clean the plotly.py insertion in this case to avoid conflict.

Opening this issue to find it back when we encounter problem, or we know what to do. It could also be some issues in plotly.py 6+ following change from using require.js to using module now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthtmlIssues with HTML and related web technology (html/css/scss/js)jupyterplotly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions