XVFB on Windows Subsystem for Linux

Use XFVB to create hidden desktop windows (say, Python Matplotlib figures) without having an actual X11 server.

  1. install XFVB

     apt install xvfb
    
  2. add to ~/.bashrc

     Xvfb :99 &
     export DISPLAY=:99
    

Use Matplotlib figure in Windows Subsystem for Linux

Install Xming X11 server for WSL to be able to have GUI elements in WSL.

Leave a Comment