Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python matplotlib display with WSL and VcXsrv #37

Open
callumhauber opened this issue Mar 4, 2022 · 0 comments
Open

Python matplotlib display with WSL and VcXsrv #37

callumhauber opened this issue Mar 4, 2022 · 0 comments

Comments

@callumhauber
Copy link
Contributor

I did a few different things, but here are the steps I think are required to make it work:

  1. Make sure VcXsrv is installed and working
  2. Install Tk backend with sudo apt install python3-tk
  3. Add these lines to the python program

import matplotlib
matplotlib.use("TkAgg")

  1. Possibly also install these (might only be specific to lab 6 stuff):
    sudo apt-get install python3-pil python3-pil.imagetk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant