Anaconda Python + Spyder on WSL

Python can be used within Windows Subsystem for Linux. Using Python on WSL can be advantageous because of easier compiler access. We generally use Miniconda Python on WSL.

conda install matplotlib spyder

If Spyder won’t start, look in the error message for missing libraries such as libxcomposite libxss1 X11 prereqs are specified in the error message on starting GUI programs like Spyder. Look above the error:

ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

to see if libxcomposite or libxss etc. need to be installed via apt install.

Notes on setting up Matplotlib for WSL