Skip to content

Plotly graph in jupyterlab notebook after exporting to html not interactive #3552

@Zhekun-Xiong

Description

@Zhekun-Xiong

Hi,

I have plotly interactive graphs on a jupyterlab notebook, it works fine on jupyterlab. But when I tried to export the notebook to html (File -> Export Notebook As -> Export Notebook to html), the html file opened has the graph but it's not interactive anymore.

Below is the code snippet I have in the notebook

import plotly.io as pio
pio.renderers.default = "jupyterlab"

import plotly.express as px

fig =px.scatter(x=range(10), y=range(10))
fig.show("jupyterlab")

And when I opened the Chrome develop tool, it shows below
image

Do you know if any way to enable that the plotly graph shown interactively in the exported jupyterlab notebook html file? Thanks!

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