Setting up Jupyter Notebook inside a Google Cloud Compute instance

Create cloud compute instance

Try the following settings:

  • zone: US-West-1-b
  • machine: 8 vCPU’s with 52 GB memory
  • boot disk: Ubuntu 14.04 with 200 GB persistent memory

(See overview / more detailed instructions on this here)

install pip, and python-dev package

sudo apt-get install python-pip python-dev

(hit enter / type Y when prompted)

sudo pip install -U pip

Install tensorflow

Info on installing tensorflow here

At this link, look for section Ubuntu > Installing with native pip python 2.7 CPU only (or if doing gpu follow that one)

install the latest version of tensorflow by grabbing the link from here (we’re assuming python 2.7, CPU only)

sudo pip install --upgrade longurlfromthearticleabove

Now install git and clone the tensorflow repository
sudo apt-get install git

Now clone tensorflow github repository

git clone https://github.com/tensorflow/tensorflow.git
Install jupyter notebook
sudo pip install jupyter

Try running Jupyter notebook

jupyter notebook --no-browser --allow-root