When you start a Deep Learning VM Images instance, a JupyterLab session is initialized.
Follow these steps to set up SSH port forwarding and then access your JupyterLab session through a local browser:
gcloud compute ssh --project PROJECT_ID \ --zone ZONE \ INSTANCE_NAME -- -L 8080:localhost:8080
Replace the following:
PROJECT_ID: Your project ID
ZONE: The Google Cloud zone where your instance is located
INSTANCE_NAME: The name of your instance
If you ran the command on your local machine, visit https://localhost:8080 to access JupyterLab.
If using Cloud Shell, access JupyterLab through the Web Preview on port 8080. The Web Preview button can be found on the top right of the Cloud Shell taskbar.