posit-dev / great-tables

Make awesome display tables using Python.
https://posit-dev.github.io/great-tables/
MIT License
1.44k stars 50 forks source link

Exports don't work in Colab notebooks #274

Open rasmi opened 2 months ago

rasmi commented 2 months ago

Description

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.)

This seems to be a side effect of running selenium in Colab and Docker. Adding the --no-sandbox and --disable-dev-shm-usage flags to ChromeOptions in _export.py fixes this.

Development environment