Install Anaconda on wsl which will manage python versions and jupyter. This is recommended since this will allow the browser to work correctly since using jupyter separately caused some issues when using the browser, such as notebook files not opening. You can install anacdonda by following the instructions here: https://mas-dse.github.io/startup/anaconda-ubuntu-install/ or here: https://docs.anaconda.com/anaconda/install/linux/ https://jupyter.org/install
After you install anacdonda on wsl server:
Update your package manager:
Then install pip3:
Install jupyter using apt again:
Now we need to install the Macaulay2 kernel for jupter to recodnize the Macaulay2 code and make notebooks using that kernel available. Make sure you run this as root (Add sudo at the beginning), because it tries to put files in system diretories:
Then to make a new notebook, type:
If you fixed the browser to work on wsl, it should redirect you to your chosen browser in Windows. Then you should be able to make an M2 file in jupyter.
You can also try using the VS code extension for jupyter: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter