Skip to content

plots in Jupyter notebooks exports to HTML do not show without internet connection #1983

@realtime

Description

@realtime

A Jupyter notebook exported to HTML produces the error message

Uncaught ReferenceError: require is not defined

in Chrome when there is no internet connection. The plot does not show, there is only blank space where it should be.

reproducable example:

import plotly.express as px
iris = px.data.iris()
px.scatter(iris, x="sepal_width", y="sepal_length", color="petal_length")

and after:

jupyter nbconvert --to html ...

Exporting the plot directly with fig.write(...) works fine, both online and offline.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions