-
Open Visual Studio Code:
code .
-
Open Windows file explorer:
explorer.exe .
-
Mount Windows filesystem:
/mnt/c/Users/<username>/<path>
-
If Jupyter claims ipykernel not installed (even though
conda list ipykernel
shows valid install):- Close all integrated terminals
- Exit vscode
- Restart WSL2 shell (not from Anaconda prompt)
- Open VSCode from WSL2 shell
- Open ipykernel interactive terminal before opening an integrated terminal
- [Source]
- Set Black as autoformatter:
"python.formatting.provider": "black", "python.formatting.blackPath": "/home/<user>/bin/black"
- Sync:
sudo hwclock -s