Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Plotly 6.0.1 not showing the first plot in vscode #5097

Copy link
Copy link
Open
@Luffbee

Description

@Luffbee
Issue body actions

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.

Metadata

Metadata

Assignees

Labels

P1needed for current cycleneeded for current cyclebugsomething brokensomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.