-
Notifications
You must be signed in to change notification settings - Fork 0
Permanent Solution for Plotly/Kaleido Headaches #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
RUN pip --no-cache-dir install plotly pandas | ||
|
||
ARG kaleido_uri="git+https://github.com/plotly/kaleido@latest-tag#subdirectory=src/py" | ||
RUN pip install "kaleido>=v1.0.0" || pip install ${kaleido_uri} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once Kaleido v1.0.0 is released, this will automatically use that, but for now it uses github
|
||
fig = px.scatter(px.data.iris(), x="sepal_length", y="sepal_width", color="species") | ||
fig.write_image("/output/figure.png", engine="kaleido") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API will be coming back in a few weeks, but the lower level API is here and it is stable.
there are no musl-compiled versions of chromium available from google, so it won't work with alpine let me know if i can help at all |
@ayjayt Thanks a lot! I will give this a try soon |
Hi @mschoettle
This is my suggestion for using Kaleido going forward, permanently. In the future, we will release a higher-level API, but this one is permanent.
I made some improvements to our dependencies to support your alpine platform which has stricter permissions than our systems do, so we have to wait for those to get pushed to pypi.
Thank you so much for your patience.