Skip to content

Plotly with LaTeXString triggers error in Pluto notebook #1801

@melonedo

Description

@melonedo

notebook link. Reproduce on my machine with Firefox or Edge.

As can be seen from the notebook, Plotly + LaTexStrings (plot(sin, label=L"s")) will trigger uncaught error in the console, and the plot is not displayed. The error message is

Uncaught (in promise) TypeError: window.MathJax.Callback is not a function
    Queue http://localhost:1235/common/SetupMathJax.js:18
    convertToTspans https://cdn.plot.ly/plotly-2.6.3.min.js:37
    convertToTspans https://cdn.plot.ly/plotly-2.6.3.min.js:37
    convertToTspans https://cdn.plot.ly/plotly-2.6.3.min.js:37
    A https://cdn.plot.ly/plotly-2.6.3.min.js:37
    w https://cdn.plot.ly/plotly-2.6.3.min.js:37
    call https://cdn.plot.ly/plotly-2.6.3.min.js:7
    exports https://cdn.plot.ly/plotly-2.6.3.min.js:37
    each https://cdn.plot.ly/plotly-2.6.3.min.js:7
    ut https://cdn.plot.ly/plotly-2.6.3.min.js:7
    each https://cdn.plot.ly/plotly-2.6.3.min.js:7
    exports https://cdn.plot.ly/plotly-2.6.3.min.js:37
    exports https://cdn.plot.ly/plotly-2.6.3.min.js:37
    drawMarginPushers https://cdn.plot.ly/plotly-2.6.3.min.js:37
    A https://cdn.plot.ly/plotly-2.6.3.min.js:37
    syncOrAsync https://cdn.plot.ly/plotly-2.6.3.min.js:37
    _doPlot https://cdn.plot.ly/plotly-2.6.3.min.js:37
    newPlot https://cdn.plot.ly/plotly-2.6.3.min.js:37
    anonymous http://localhost:1235/components/CellOutput.js line 221 > Function:5
    anonymous http://localhost:1235/components/CellOutput.js line 221 > Function:328
    execute_dynamic_function http://localhost:1235/components/CellOutput.js:221
    execute_scripttags http://localhost:1235/components/CellOutput.js:286
    RawHTMLContainer http://localhost:1235/components/CellOutput.js:394
    run http://localhost:1235/components/CellOutput.js:321
    RawHTMLContainer http://localhost:1235/components/CellOutput.js:392
    Preact 9
    apply_notebook_patches http://localhost:1235/components/Editor.js:570
    apply_notebook_patches http://localhost:1235/components/Editor.js:566
    on_update http://localhost:1235/components/Editor.js:663
    on_message http://localhost:1235/common/PlutoConnection.js:362
    last_task http://localhost:1235/common/PlutoConnection.js:128
    onmessage http://localhost:1235/common/PlutoConnection.js:122
SetupMathJax.js:18:49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions