WSL 2 issues a dynamic IP address each time you launch WSL 2 -- see MSFT docs.
Personally, I run a Python command within a subshell to print that IP:
jupyter lab --ip $(python3 -c "import subprocess; subprocess.run(['hostname', '-I'], text=True).stdout")
This works for me on Ubuntu 20.04 and Windows 10 build 19041.329.
Note: You'll likely have to visit that IP address instead of localhost, plus the port through which you're running Jupyter, e.g. http://:8888 .
To get my IP address via the CLI I use:
ip addr | grep eth0 | grep inet
I choose the first IP address available, typically using that address without the subnet mask, i.e. the forward slash + number.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…