Sorry, something went wrong.
| The path to the directory where Chrome should be installed. | ||
| If None, the default download path will be used. | ||
| """ | ||
| if not kaleido_available() or kaleido_major() < 1: |
There was a problem hiding this comment.
why a confirmation? (not arguing, just think it's very unlikely someone would call the function by accident)
Sorry, something went wrong.
There was a problem hiding this comment.
Do you mean the one on line 837? I agree it's unlikely to be called by accident, but I mainly put it there so users could confirm that the install path makes sense.
In any case, the confirmation only appears when using the command-line plotly_get_chrome command, not when calling the plotly.io.get_chrome() function within a script.
Sorry, something went wrong.
Closes #5272
Expose plotly.io.get_chrome() as a function which can be called from within a Python script.
get_chrome() accepts one optional argument, path, which is the location to download Chrome to; if not supplied, the default location defined by choreographer will be used.
This PR also slightly refactors get_chrome() into two functions:
On this branch, running the following code should work: