I’d like to make amends for my previous dumb answer by finding a solution, but regret I can’t.
If you are getting an error message it would be very useful to know what that is. When I run your code I get ValueError: Failed to start Kaleido subprocess
followed by some further info. But I don’t know how to solve it.
There is discussion of a similar issue here: