biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / kaleido / tests.py
blob0cbcaaae60bed6025abf2aaf3ac30c46215d85ab
1 import plotly.express as px
2 import os
3 import os.path
5 out = os.environ["out"]
6 if not os.path.exists(out):
7 os.makedirs(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")