Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2797

Can't get matplotlib figures to show in WSL ubuntu 24.04.1 LTS

$
0
0

I did the following in order, trying to show a dummy plot in python each time (and getting a different error):

python -m pip install PyQt5export QT_QPA_PLATFORM='xcb'sudo apt install libxcb-xinerama0 libqt5x11extras5sudo add-apt-repository ppa:kisak/kisak-mesasudo apt updatesudo apt upgrade

The last error is:

>>> plt.show()WARNING: dzn is not a conformant Vulkan implementation, testing use only.WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA GeForce RTX 4070)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization

and the plot window appears black and is not interactive. I understand I can disable the GPU use but my CPU does not have integrated graphics. Does this mean I have to install CUDA drivers in WSL or something? Is there a way to get this to work or should I just plot my stuff through powershell/jupyter notebook?


Viewing all articles
Browse latest Browse all 2797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>