Skip to content

Instantly share code, notes, and snippets.

@ahlusar1989
Forked from valentina-s/jupyter-google-cloud.md
Last active January 4, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahlusar1989/980d7d18a8141349c9045e7e2ed3d81d to your computer and use it in GitHub Desktop.
Save ahlusar1989/980d7d18a8141349c9045e7e2ed3d81d to your computer and use it in GitHub Desktop.
Jupyter Notebook on Google Cloud Compute Instance

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 8888:localhost:8888"  --zone "us-east1-b" "instance-1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment