1 import plotly
.express
as px
5 out
= os
.environ
["out"]
6 if not os
.path
.exists(out
):
9 outfile
= os
.path
.join(out
, "figure.png")
10 fig
= px
.scatter(px
.data
.iris(), x
="sepal_length", y
="sepal_width", color
="species")
11 fig
.write_image(outfile
, engine
="kaleido")