Ok got it working on Win 10 Pro with WSL 1 (not 2) with Ubuntu WSL
Follow these steps
- Install qt5 with
sudo apt-get install qt5-default
- Add a line:
export DISPLAY=localhost:0.0
to~/.bashrc
. Eithersource ~/.bashrc
or restart WSL for this to take effect - Install VcXsrv. Please note that Xming didn’t work for me and only VcXsrv worked.
- Test it out
using Plots; gr(); plot(1:3)
Yay!