ylikx / forpy

Forpy - use Python from Fortran
GNU Lesser General Public License v3.0
211 stars 51 forks source link

A nice way to use forpy+matplotlib on Windows #17

Open implicitall opened 4 years ago

implicitall commented 4 years ago

Here an easy way to get going on a Windows machine if you like to work in the WSL environment. Assuming you have installed WSL Ubuntu:

sudo apt install python3-pip pip3 install python-config pip3 install matplotlib sudo apt install python3-tk

Install VcXsrv from https://sourceforge.net/projects/vcxsrv Add "export DISPLAY=localhost:0.0" to ~/.bashrc

Restart your bash Window and it should work. You have to launch VcXsrv if it is not running.

This information was gathered from this post: https://stackoverflow.com/questions/43397162/show-matplotlib-plots-in-ubuntu-windows-subsystem-for-linux

I feel that WSL is a good way to use Windows since Visual Studio Code allows a remote connection to open a folder. But to each his own.

ylikx commented 4 years ago

Thanks for the tutorial!