Why doesn't 'sage -n jupyterlab' open correctly ?(localhost refused to connect)
I installed Sage and JupyterLab in WSL (Arch Linux).
sudo pacman -S sagemath
sudo pacman -S jupyterlab
Its command line seems to work fine.
However, after the first run of sage -n jupyterlab
that successfully opens JupyterLab, I cannot open JupyterLab again after restarting my computer.
Even if I copied those URL-like links it mentioned.
How should I adjust it correctly?
This might point to a "too cautions" firewall configuratin : your machine refuses connections from itself (localhost, a. k. a. 127.0.0.1) on the port 8927.
traceroute
andnc
are your friends...WSL configuratuion may also be in cause : it might or might not accept connections (and ISTR that it may depend on the WSL version...).
BTW : textual cut'n'paste is way prefferable to screen dumps...
@Emmanuel Charpentier Thanks. I'm not sure if it's because of the directory, but I encounter an error when opening WSL from the directory in Windows. However, when I switch back to the WSL directory, it opens correctly. The directory may have a significant impact.