plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
MIT License
378 stars 38 forks source link

Azure Databricks Compatability #229

Open ayjayt opened 3 days ago

ayjayt commented 3 days ago

Not sure how to circumvent this new requirement in a serverless compute on Azure Databricks...

It seems chromium cannot be accessed in those conditions and will always end up in error if trying to save plotly plots as static images.

Originally posted by @pdmkdz in https://github.com/plotly/Kaleido/issues/224#issuecomment-2484176831

Hi @pdmkdz,

I will investigate this and report back. For now, if its really impossible to pull in chrome, you can probably downgrade Kaleido to a v0.1.xx or maybe a v0.2.xx- but I will have a better answer for you this week.

pdmkdz commented 2 days ago

Thanks for opening this, I was about to open an issue, perfect timing. I am pinning to %pip install kaleido==0.2.1 for the time being, and works fine. I contacted the Databricks reps to see if we can circumvent these issues and have the headless browser, but my attempts have been pointless when running from a notebook browser using a serverless compute. So to be able to run it in Databricks gotta be self contained like in the past.