Install SageMath in WSL (via mamba)

$ curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh
$ sh Mambaforge-$(uname)-$(uname -m).sh
$ conda install mamba
$ mamba create -n sage sage

in WSL

$ mkdir ~/jupyter
$ conda activate sage
(sage)$ sage -n jupyter --generate-config

in the file '~/.sage/jupyter-4.1/jupyter_notebook_config.py'

c.NotebookApp.use_redirect_file = False

in the file '~/.bashrc'

export BROWSER='/mnt/c/Program Files/Google/Chrome/Application/chrome.exe'
alias sage_notebooK='cd ~/jupyter; conda run -n sage sage --notebook=jupyter'

in WSL

$ sage_notebook

+ Recent posts