When I try to plot a Plotly graph, the height is set to near 0 or something, because the graph renders collapsed. What I'm seeing:
However, if I manually set the graph's height, it renders correctly. How can I get the graphs to render correctly without manually setting the height?
Code for repro collapsed graph:
import plotly.io as pio
pio.renderers.default = "jupyterlab"
import plotly.express as px
import pandas as pd
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
fig.show()
Now make the graph show:
fig.layout.height = 500
fig.show()
I'm running this with the following setup:
- Docker Ubuntu 22.04
- plotly==5.14.1
- jupyterlab==4.0.0
- ipywidgets==8.0.3