Title: [ENH]: WSL support · Issue #32381 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: WSL support · Issue #32381 · matplotlib/matplotlib
X Title: [ENH]: WSL support · Issue #32381 · matplotlib/matplotlib
Description: Problem Actually it is not user-friendly to run Matplotlib on WSL. Moreover, this answer python - Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2) - Stack Overflow is outdated. Since WSL2 implements the Wayland protocol and ...
Open Graph Description: Problem Actually it is not user-friendly to run Matplotlib on WSL. Moreover, this answer python - Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2) - Stack Overflow is outdated. Since W...
X Description: Problem Actually it is not user-friendly to run Matplotlib on WSL. Moreover, this answer python - Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2) - Stack Overflow is outdated. Sin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32381
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: WSL support","articleBody":"### Problem\n\nActually it is not user-friendly to run Matplotlib on WSL.\n\nMoreover, this answer [python - Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2) - Stack Overflow](https://stackoverflow.com/questions/43397162/show-matplotlib-plots-and-other-gui-in-ubuntu-wsl1-wsl2?answertab=scoredesc#tab-top) is outdated.\n\nSince WSL2 implements the **Wayland protocol** and the **OpenGL API**, Matplolib should detect it is running on WSL and select automatically the right backend or raises an informative error message.\n\nTo detect WSL, we can rely on:\n- `uname` kernel\n- or the presence of ` /etc/wsl-distribution.conf`\n\nFor the backend, we can use:\n- Qt Agg with PyQt5 and set the env `QT_QPA_PLATFORM=wayland` (PySide2 seems to crash)\n - _to be completed Qt6 GTK Vulkan..._\n\n`QT_QPA_PLATFORM` is mandatory since Qt is probably not able to detect WSL and select the right backend.\n\n**RESUME for USERS: YOU DON'T NEED X11 ! It should work out of the box !**\n \n\n\n### Proposed solution\n\n_No response_","author":{"url":"https://github.com/FabriceSalvaire","@type":"Person","name":"FabriceSalvaire"},"datePublished":"2026-09-23T13:16:39Z","url":"https://github.com/matplotlib/matplotlib/issues/32381"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2572b646-bb13-70c3-d418-fa951f2f417d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B02A:395268:10AC117:160F3BA:6B064EE4 |
| html-safe-nonce | 90cd79f23b661564004a82f35ea78bd6220aecb9227bd05b34ae746a27709ab0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDJBOjM5NTI2ODoxMEFDMTE3OjE2MEYzQkE6NkIwNjRFRTQiLCJ2aXNpdG9yX2lkIjoiNTIyMzQyODE3MjIyMTQwMjg1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2f4e65f4a96b60af9607fc86f348e367a347ca79bf01acfddb9ef62fce69b276 |
| hovercard-subject-tag | issue:5553997512 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/32381/issue_layout |
| twitter:image | https://opengraph.githubassets.com/212e0b3d234ce89e2a06586f58ca2d8aaba118587479ff2eece35b68c235d659/matplotlib/matplotlib/issues/32381 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/212e0b3d234ce89e2a06586f58ca2d8aaba118587479ff2eece35b68c235d659/matplotlib/matplotlib/issues/32381 |
| og:image:alt | Problem Actually it is not user-friendly to run Matplotlib on WSL. Moreover, this answer python - Show matplotlib plots (and other GUI) in Ubuntu (WSL1 & WSL2) - Stack Overflow is outdated. Since W... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FabriceSalvaire |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width