However version 9.5 is pretty old by now. Moreover, it does not permit to installextra packages.If you would like to install version 10.2 instead, remove the system packagesagemath if already installed, and follow theinstructions below:
Yes, root access: Then the easiest way to install SageMath isthrough a Linux distribution that provides it as a package. Mostmajor Linux distributions have up-to-date versions of SageMath,see repology.org: sagemath for anoverview. See Linux Package Managers for additional information.
which should open a jupyter notebook in the web browser that you installed earlier. If jupyter was not installed/the command not recognized, try running the command pip install notebook, though I found that this had already been included in the prerequsites of installing sagemath.
Next, install the Jupyter extension. Important: I had to install the extension while in the WSL window because having already installed it in a normal window does not make installed here, which lead to the sagemath kernel not appearing later.
You can also write and load sage files if you have larger blocks of code. To do so, save the sage code as a file such as myfile.sage, with the .sage extension. Then, in a sagemath-kernel .ipynb file, use the code:
df19127ead