This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will create a SageMaker instance with a custom Python and Jupyter kernel, | |
# in addition to a PySpark3.0.1 | |
set -e | |
sudo -u ec2-user -i <<'EOF' | |
mkdir -p /home/ec2-user/SageMaker/kernels | |
conda update -n base conda --yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import os | |
import pickle | |
import sys, argparse | |
from googleapiclient.discovery import build | |
from google.auth.transport.requests import Request | |
from googleapiclient.http import MediaIoBaseDownload | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
# If modifying these scopes, delete the file token.pickle. |