Ask Your Question
1

Why doesn't 'sage -n jupyterlab' open correctly ?(localhost refused to connect)

asked 2023-06-16 15:41:58 +0200

licheng gravatar image

updated 2023-06-26 09:46:14 +0200

FrédéricC gravatar image

I installed Sage and JupyterLab in WSL (Arch Linux).

sudo pacman -S sagemath
sudo pacman -S jupyterlab

Its command line seems to work fine. image description

However, after the first run of sage -n jupyterlab that successfully opens JupyterLab, I cannot open JupyterLab again after restarting my computer.

image description

Even if I copied those URL-like links it mentioned.

image description

How should I adjust it correctly?

edit retag flag offensive close merge delete

Comments

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 and nc 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...).

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2023-06-16 17:21:29 +0200 )edit

BTW : textual cut'n'paste is way prefferable to screen dumps...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2023-06-16 17:25:53 +0200 )edit

@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.

licheng gravatar imagelicheng ( 2023-06-18 03:12:36 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2023-06-18 12:20:18 +0200

slelievre gravatar image

updated 2023-06-18 12:27:32 +0200

Instead of sage -n jupyterlab, try running jupyter lab.

The error might have to do with the "redirect file". See

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-06-16 15:41:58 +0200

Seen: 231 times

Last updated: Jun 18 '23