Skip to content

Commit

Permalink
Cause kaleido to explicitly fail if no chromium: (#224)
Browse files Browse the repository at this point in the history
Before we were letting choreographer handle it.
  • Loading branch information
ayjayt authored Nov 18, 2024
1 parent 2459633 commit 6abcd02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/py/kaleido/scopes/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ def __init__(self, plotlyjs=None, mathjax=None, topojson=None, mapbox_access_tok
'kaleido_scopes.js'
)
path = os.environ.get("BROWSER_PATH", which_browser())
if not path:
raise RuntimeError("Kaleido now requires that chrome/chromium is installed separately. Kaleido will try to detect it automatically, but the environmental error \"BROWSER_PATH\" can also be set")
if tmp_path:
temp_args = dict(dir=self.tmp_path)
elif "snap" in path:
Expand Down

0 comments on commit 6abcd02

Please sign in to comment.