Skip to content

Instantly share code, notes, and snippets.

@vochicong
Last active January 8, 2018 02:47
Show Gist options
  • Save vochicong/98109f650636e443b0ffcb3b86ef7c83 to your computer and use it in GitHub Desktop.
Save vochicong/98109f650636e443b0ffcb3b86ef7c83 to your computer and use it in GitHub Desktop.
Cloud Datalabで手軽にディープラーニングを始める ref: https://qiita.com/vochicong/items/91e5c920f994cf60eabb
brew cask install google-cloud-sdk
gcloud components install datalab
datalab create --zone asia-northeast1-a mylab --port 8080
datalab stop mylab
datalab connect mylab
!pip3 install keras
%%bash
echo "pip3 install keras" >> /content/datalab/.config/startup.sh
cat /content/datalab/.config/startup.sh
gcloud compute ssh mylab --command='sudo chown -R datalab /mnt/disks/datalab-pd/content/datalab/notebooks'
gcloud compute scp --recurse [LOCAL_DATA_FOLDER] \
datalab@mylab:/mnt/disks/datalab-pd/content/datalab/notebooks/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment