Skip to content

Plotly 6.0.1 not showing the first plot in vscode #5097

Closed
@Luffbee

Description

@Luffbee

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

No one assigned

    Labels

    P1needed for current cyclebugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy