Search code examples
google-cloud-platformgoogle-cloud-vertex-ai

How does one move python and other types of files from one GCP notebook instance to another?


I have a Vertex AI notebook that contains a lot of python and jupyter notebook as well as pickled data files in it. I need to move these files to another notebook. There isn't a lot of documentation on google's help center.

Has someone had to do this yet? I'm new to GCP.


Solution

  • Can you try these steps in this article. It says you can copy your files to a Google Cloud Storage Bucket then move it to a new notebook by using gsutil tool.

    In your notebook's terminal run this code to copy an object to your Google Cloud storage bucket:

    gsutil cp -R /home/jupyter/* gs://BUCKET_NAMEPATH
    

    Then open a new terminal to the target notebook and run this command to copy the directory to the notebook:

    gsutil cp gs://BUCKET_NAMEPATH* /home/jupyter/
    

    Just change the BUCKET_NAMEPATH to the name of your cloud storage bucket.