When saving a figure of any format in a Colab notebook, I get the following error:
SessionNotCreatedException: Message: session not created: Chrome failed to start: exited normally.
(session not created: DevToolsActivePort file doesn't exist)
(The process started from chrome location /root/.cache/selenium/chrome/linux64/123.0.6312.122/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Description
When saving a figure of any format in a Colab notebook, I get the following error:
This seems to be a side effect of running selenium in Colab and Docker. Adding the
--no-sandbox
and--disable-dev-shm-usage
flags toChromeOptions
in_export.py
fixes this.Development environment