ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 08 Mar 2023 19:20:47 +0100New ways to install Sage failed ; Need helphttps://ask.sagemath.org/question/66844/new-ways-to-install-sage-failed-need-help/I am sorry to be obliged to ask this question. Until now, I was using the old Sagemath version with an automatic installation on Windows 10. But I would like to be update. Secondly, I use Sagemath in courses, and I need student to install it. Of course they can use Sagecell but I prefer to use Jupiter notebooks to interact with them. So if I understand correctly, there is two ways now to install Sagemath on my computer :
1) Docker Sagemath. So Docker has been installed on my computer (for two days it was installed but the start was non stopping so I supposed that a correction has been applied). Now I went in the site `https://hub.docker.com/r/sagemath/sagemath`, copy `docker pull sagemath/sagemath` and run it in PowerShell. Then inside Powershell running `docker run -it sagemath/sagemath:latest` I have a perfect version of a command line Sagemath.
Here comes my problem : running ` docker run -p8888:8888 sagemath/sagemath:latest sage-jupyter` returns the following error `docker: Error response from daemon: driver failed programming external connectivity on endpoint kind_kirch (58408cd6ac6e671d23cf5f9875de73bd013477b6ebb526ba499cc00d9e68c78f): Bind for 0.0.0.0:8888 failed: port is already allocated.`
Inside Docker I have closed all the containers and even if I worked from Docker, I could not have a jupiter notebooks. I have tried to search on internet to find what went wrong but I hav not founded any usefull information. Could some one help me.
2) the second way is to use wsl2 and install Ubuntu and then Sagemath in Ubuntu. But in that case, when installing sagemath inside Ubuntu I have always errors some comming from mathplot-lib.
I have constructed all my Operation Research on Sagemath and I need to have a simple way to install it. Not only for me but mainly for my students who are not computer scientists.CyrilleWed, 08 Mar 2023 19:20:47 +0100https://ask.sagemath.org/question/66844/How to show PNG viewer from WSL with X server?https://ask.sagemath.org/question/65505/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`IvanaGyroSat, 24 Dec 2022 13:48:04 +0100https://ask.sagemath.org/question/65505/