Ask Your Question

How to show PNG viewer from WSL with X server?

asked 2022-12-24 15:26:41 +0100

IvanaGyro gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-12-24 15:26:25 +0100

IvanaGyro gravatar image

After I upgraded my Ubuntu to 22.04 and Sage to 9.5.4, the PNG viewer showed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2022-12-24 13:48:04 +0100

Seen: 187 times

Last updated: Dec 24 '22