Skip to content
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

Plotly graphs not showing in html renders #5068

Open
jjstrydom opened this issue Mar 7, 2025 · 3 comments
Open

Plotly graphs not showing in html renders #5068

jjstrydom opened this issue Mar 7, 2025 · 3 comments
Labels
bug something broken P1 needed for current cycle regression this used to work

Comments

@jjstrydom
Copy link

jjstrydom commented Mar 7, 2025

Using plotly==6.0.0, and rendering notebooks to html the plots do not work anymore. They just show up as blanks.

It seems there is a javascript issue, when I open web developer tools using plotly==6.0.0 I see the following javascript errors that are not present in the plotly==5.24.1 release.

Uncaught TypeError: kP.select is not a function

Image

The issue is also reported here: quarto-dev/quarto-cli#12061

@jjstrydom
Copy link
Author

import plotly.express as px
import plotly.io as pio
pio.renderers.default = "png+notebook_connected+vscode"

fig = px.line(
    x=list(range(15)),
    y=list(range(15)),
)
fig.show()

Output from plotly==5.24.1

Image

Output from plotly==6.0.0

Image

@jjstrydom
Copy link
Author

jjstrydom commented Mar 7, 2025

Using python 3.11.11, uv package manager

pyproject.toml

[project]
name = "plotly-debug"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
    "ipykernel>=6.29.5",
    "jupyter>=1.1.1",
    "plotly>=6.0.0",
]

Click export to HTML in vscode, but happens via jupyter nbconvert in bash too

Image

@gvwilson gvwilson added bug something broken P1 needed for current cycle regression this used to work labels Mar 7, 2025
@gvwilson
Copy link
Contributor

gvwilson commented Mar 7, 2025

Thanks @jjstrydom - I'll try to get someone to look at this in the upcoming work cycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P1 needed for current cycle regression this used to work
Projects
None yet
Development

No branches or pull requests

2 participants