Closed polakowo closed 3 years ago
Hi @polakowo, thanks for the report. I haven't seen this before, but the error message includes:
Check failed: sandbox::ThreadHelpers::IsSingleThreaded()
.
So one idea is to add the --single-process
chromium flag. Here's general info in using custom chromium flags in kaleido (https://github.com/plotly/Kaleido/wiki/Customizing-Chromium-Flags). Here's what you can try in particular:
import plotly.io as pio
pio.kaleido.scope.chromium_args += ("--single-process",)
@jonmmease thank you, this worked!
How to reproduce:
Dockerfile:
Build and run:
In Jupyter Lab:
Raises error:
I'm using Apple M1, but having no issues running it locally.
Edit: No issues when running with Binder and Azure. Seems to be a problem related to Docker and Apple Silicon.