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 6.0.1 not showing the first plot in vscode #5097

Open
Luffbee opened this issue Mar 18, 2025 · 1 comment
Open

Plotly 6.0.1 not showing the first plot in vscode #5097

Luffbee opened this issue Mar 18, 2025 · 1 comment
Assignees
Labels
bug something broken P2 considered for next cycle

Comments

@Luffbee
Copy link

Luffbee commented Mar 18, 2025

The first plot is not showing in vscode interactive window, using the "notebook_connected" renderer.
I'm using the following code (note the # %% is used to enable vscode interactive window):

# %%
import plotly.express as px
import plotly.io as pio

pio.renderers.default = "notebook_connected"
px.line(x=list(range(10)), y=list(range(10, 20))).show()

# %%
px.line(x=list(range(10)), y=list(range(10, 20))).show()

# %%
px.line(x=list(range(10)), y=list(range(10, 20))).show()

And the result:

Image

I toggled the dev tool and found a suspicious network error as the following, note the failed request does not have the ".js" suffix.

Image

Additionally, I tried exporting it to HTML (I'm testing the problem in #5068 ), and the HTML works fine, all plots are showing.

@Luffbee Luffbee changed the title Plotly 6.0.1 not showing the first plot Plotly 6.0.1 not showing the first plot in vscode Mar 18, 2025
@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Mar 19, 2025
@gvwilson
Copy link
Contributor

@marthacryan I don't expect this will be solved by your extension but may be related (?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

3 participants