title: How to load a .pickle file on python from google cloud storage
body: <p>My problem is the following:</p>
  
  <p>I have two .p (pickle files) in my bucket in the google cloud storage and I would like to load them on my jupyter notebook (where I run my code on the VM instance). </p>
  
  <p>I tried the following </p>
  
  <pre><code>url = "http:\\&lt;localhost&gt;\tree\storage.googleapis.com\&lt;bucket-name&gt;"
  data_x = pickle.load(open(url + "\&lt;filename&gt;.p", "rb" ))
  </code></pre>
  
  <p>but it said that there is no such file or directory. I have also tried to create a public link on the google storage with no success. I managed to load .mat files and .pts files that way but I can't seem to be able to load the .p file.</p>
  
  <p>There was a similar question posted here: <a href="https://stackoverflow.com/questions/37778621/pickling-python-objects-to-google-cloud-storage">pickling python objects to google cloud storage</a></p>
  
  <p>but it is depreciated and I did not manage to use the answer.</p>
  
  <p>This is also a resource  that could be useful: <a href="https://pypi.python.org/pypi/google-cloud-storage" rel="nofollow noreferrer">https://pypi.python.org/pypi/google-cloud-storage</a></p>
  
  <p>Thanks a lot for you help!!</p>