SageMath does not provide native Windows binary installer anymore. There are two options: compile SageMath in the WSL2 environment, or install Docker Desktop and pull Sagemath image to run in a container. The first option is really challenging: it requires a lot of space (the required packages, and they may (usually do) need a bit of tries. The second option is easier in my opinion. Let me demonstrate here how to do it.
- Get Docker Desktop from here. You may need to restart the computer after the installation.
- Start the installed Docker Desktop. On top of it, find "search", and search for "sagemath".
- Pull "sagemat/sagemath:latest". The image will be saved to your computer.
- Run it by click on "run".
- In the "Containers" (left panel), you can find it there (running).
- Click on the ... (vertical three dots), and chose "View details".
- You will find a "http://localhost/..." and "http://127.0.0.1/...". Click on it will bring up the default browser and link to the Junyper notebook.
- Click on "View -> Open JupyterLab" to get to JupyterLab, and add a new Launcher if you have not done it before. Or click on the existing .jpynb file to continue the old work.
- To shutdown the container, use "File ->Shut Dow".
- In the future, just run Docker Desktop, go to the Containers, and click run on the samgemath (already there). Repeat steps 6..9.