title: Error: Unauthorized on my own Google Cloud notebook
body: <p>I just built a Compute Engine app with a Ubuntu 16.04 VM, launched it in Chrome, installed python3, the ipython kernel, and some libraries, so that I could run  Jupyter notebooks. Here are the commands:</p>
  
  <pre><code>sudo apt-get update
  sudo apt-get install python3-setuptools python3-dev libzmq-dev
  sudo easy_install3 pip
  sudo pip3 install ipython pyzmq jinja2 tornado jsonschema
  sudo pip3 install jupyter
  sudo ipython kernel install
  sudo pip3 install numpy scipy scikit-learn pandas matplotlib
  </code></pre>
  
  <p>The last command gave this message, twice:</p>
  
  <blockquote>
    <p>The directory '/home/allennugent/.cache/pip' or its parent directory
    is not owned by the current user and caching wheels has been disabled.
    check the permissions and owner of that directory. If executing pip
    with sudo, you may want sudo's -H flag.</p>
  </blockquote>
  
  <p>Hoping this wouldn't be a show-stopper, I went on to set up a firewall rule with Source IP ranges = '0.0.0.0/0' and Protocols and ports = 'tcp:8888'. Then I launched jupyter:</p>
  
  <pre><code>jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser &amp;
  </code></pre>
  
  <p>This created hyperlink to the notebook. When I click on the link (in the Serial Console window), a browser page opens with </p>
  
  <blockquote>
    <p>Error: Unauthorized  You are currently logged in as [my gmail address]
    which does not have access to Cloud Shell 3118611.</p>
  </blockquote>
  
  <p>According to the Cloud Platform dashboard I <em>was</em> logged in under the same account name when I set up the Compute Engine, so I don't know what is going wrong with the authorization.</p>
  
  <p>Am I missing something?</p>