How to show PNG viewer from WSL with X server?
There is a similar question: Why is a png viewer not loading?(question/63924). The answer in that post only gave an alternative instead of answering the original question. I don't want to execute sagemath with Jupyter notebook. The first comment in that post asked the OP to install X server. I have install X server and I also can see the windows on my Windows when typing these commands from my WSL
xeyes
xclock -update 1
However, I still cannot see the PNG viewer when I execute this command in Sage.
show(plot(sin(x) + sin(1.6*x), 0, 40))
The command above was got from the tour of Sage. How can I show the PNG view in Windows with Sage installed in WSL?
System Information
WSL version: WSL2
Windows: Windows 11
Ubuntu 20.04
Sage was installed by sudo apt-get install sagemath