What I want to do is to create a shortcut for Jupyter Notebook which has to run in WSL (because all my python packages are there). For this AFAIK I should create PowerShell script which runs WSL with command to launch Jupyter Notebook, something like this:
wsl -e bash -c "jupyter notebook"
But this command gives bash: jupyter: command not found although if I do it step by step, it launches Jupyter:
PS C:\Users\Artem> wsl
(base) artem@LAPTOP-O4C3S1UK:/mnt/c/Users/Artem$ jupyter notebook
All tested commands suffer from one of these problems:
- bash cannot find the command (neither
jupyteroranaconda) - Some terminal laucnhes and instantly disappears
I am not proficient enough in PowerShell/WSL scripting so asking for advice how to do it properly.
P.S. I guess I can install jupyter for Windows and add kernels from WSL, but I want to know if problem can be solved in the way described above.