JupyterLab¶
JupyterLab is installed but not running, and the seller settings security group does not open its port, 8888.
Why it is not open to the internet
A notebook can run any code on the instance, so it is safer to reach it through an encrypted tunnel than to open its port. You need your own SSH client, with a key pair or a temporary key from EC2 Instance Connect, or Session Manager. The in-browser EC2 Instance Connect terminal cannot forward ports.
Start it and open it¶
-
Connect with a tunnel for port 8888:
-
On the instance, start JupyterLab:
-
It prints a link that starts with
http://localhost:8888/lab?token=. Open that link in your browser. The token is what lets you in.
Keep it running after you disconnect¶
JupyterLab stops when you close the terminal. To keep it running, start it in the background instead, and print its link with the second command:
Where your files live
Notebooks and files you save are kept on the instance's disk in
/home/ubuntu. They survive stopping and starting the instance, but are
deleted when the instance is terminated, so download anything you want to
keep.