Skip to content

Instantly share code, notes, and snippets.

@davidrpugh
Created May 7, 2020 10:52
Show Gist options
  • Save davidrpugh/ab5f447a55d538d82f781d07fc0f430a to your computer and use it in GitHub Desktop.
Save davidrpugh/ab5f447a55d538d82f781d07fc0f430a to your computer and use it in GitHub Desktop.
How to start an Xvfb virtual display using pyvirtualdisplay
import pyvirtualdisplay
_display = pyvirtualdisplay.Display(visible=False, # use False with Xvfb
size=(1400, 900))
_ = _display.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment