Install GraphLab Create on AWS for Coursera Students
The below instructions are intended for participants of the Coursera Machine Learning Specialization course who would like to use GraphLab Create with jupyter (IPython Notebook) in the Cloud. However, everyone is welcome to try this approach and our included tutorials. You will need a to create a free AWS account. There is no cost to get started but be aware charges will be applied to your AWS account if you exceed usage of the AWS Free Tier. See AWS Free Usage Tier FAQ. If you need additional help, visit the Turi forum.
Step 1: Sign in to https://console.aws.amazon.com/
If you do not have an AWS account, create one for free now.
Step 2: Launch an EC2 instance with the GraphLab Create AMI
- In the AWS Management Console, under Compute, select "EC2".
- In the EC2 Dashboard, under Instances, select "Instances".
- Select "Launch Instance".
- On the left navigation, select "Community AMIs".
- Search for graphlab-create-2.1-coursera-1, then "Select" this instance.
- Select Type t2.micro for use on the free tier. Any type can be selected.
- Select "Review and Launch" or if prefered, optionally you can Configure Instance Details.
- On the Review Instance Launch page, select "Edit Security Groups".
- Select "Add Rule":
- Type: Custom TCP Rule
- Protocol: TCP
- Port Range: 8888
- Source: Anywhere
- Select Review and Launch
- Select Launch
Step 3: Launch jupyter (IPython) notebook on your EC2 instance
- In the description of your new EC2 instance, find the Public IP address
- In a browser, browse to http://public ip address:8888/tree
- NOTE: The EC2 instance must be running to obtain IP address. This takes a few moments to boot. IP address will change upon every launch.
Step 4: Set your personal GraphLab Create product key
- Open a new notebook by selecting New and Python 2
- You will now be in a jupyter Python environment that includes GraphLab Create version 2.1
- Set your GraphLab Create product key using the GraphLab Create API
# set product key
your product key here')
# output active product key
IMPORTANT: When you are done working, stop the EC2 instance to preserve your free EC2 usage hours
- Under Action > Instance State > Stop. Stopping will retain changes to your work (terminating will clear changes and remove the instance).
Q: Can I download my notebooks?
Yes. In the notebook you want to download, select File > Download as > IPython Notebook (.ipynb)
Q: How do I use my own data with GraphLab Create when jupyter is hosted on EC2?
NOTE: data storage counts against your Free Tier usage limits.
Option 1: You can upload files directly into EC2 using jupyter.
- On http://public ip address:8888 page, select Upload. Select your file. Select Upload.
# example of loading csv into SFrame
sf = graphlab.SFrame('your_data.csv')
Option2: Upload data to AWS S3
- In the AWS Management Console, under Storage & Content Delivery, select S3.
- Select Create Bucket
- Enter a bucket name. Select Region (ideally the same as your EC2 region). Your bucket will be created.
- Select new bucket. Select Actions > Upload. Select Add Files. Select Start Upload. Wait for upload to succeed.
- Select the file. Select Properties. Under Permissions, Select Add more permissions.
- Grantee: Everyone
- Check Open/Download
- Select Save
# example of loading csv into SFrame from S3
sf = graphlab.SFrame('https://s3.../your_data.csv')