On Instance:
pip install jupyter[notebook]
jupyter notebook --generate-config
# nano .jupyter/jupyter_notebook_config.py
echo "c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8088" >> .jupyter/jupyter_notebook_config.py
On local computer:
gcloud compute ssh --ssh-flag="-L 8088:localhost:8088" --zone "us-central1-f" "instance-10"