Plotly Express browser tab does not always load

Hi, I am new to using Plotly. So far, it seems like a great tool!

I am using Plotly Express to plot 3D scatter plots in a browser tab. However, sometimes, when I run my script, an empty browser tab opens and freezes for about a minute, after which the program terminates silently.
After retrying a couple of times, everything works as expected, and a browser tab with my plot is opened. From this moment on I can usually plot the

I am doing nothing special, just creating a dataframe and plotting it using px.scatter_3d() and
The problem seems to occur on both, Edge and Chrome.

Is this normal behaviour for Plotly Express and is there a simple way to solve it? Otherwise, is there some other way to quickly show plots which does not have this problem?

Hey @zwouter welcome to the forums.

It’s hard to tell, but this does not sound like a normal behavior. Could you create an example plot for us to look at?

Hey @AIMPED, thanks for the reply.

The problem does not occur every time, and I’m also not able to reproduce it right now. However, the plot that I am creating is very similar to the code block below.

import as px
import pandas as pd

df = pd.DataFrame.from_dict({
    "X": [0.06, 0.8, 0.02],
    "Y": [0.1, 0.7, 0.3],
    "Z": [0.2, 0.06, 0.4],
    "Class": ["A", "A", "B"]
fig = px.scatter_3d(df, x="X", y="Y", z="Z",
    title="Z vs Y vs Z", 
    labels={"x": "X", "y": "Y", "z": "Z"},
    range_z=[0, 1],