Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 846 Bytes

WSL_commands.md

File metadata and controls

29 lines (17 loc) · 846 Bytes

Windows Subsystem for Linux (WSL2) Commands/Issues

Opening Files

  • Open Visual Studio Code: code .

  • Open Windows file explorer: explorer.exe .

  • Mount Windows filesystem: /mnt/c/Users/<username>/<path>

Missing Packages

  • 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]

VSCode Setup

  • Set Black as autoformatter: "python.formatting.provider": "black", "python.formatting.blackPath": "/home/<user>/bin/black"

System Time

  1. Sync: sudo hwclock -s