Skip to content

Instantly share code, notes, and snippets.

@oliverdaff
Created March 14, 2019 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverdaff/482f798684c855ce8b32dd2e8c550d6a to your computer and use it in GitHub Desktop.
Save oliverdaff/482f798684c855ce8b32dd2e8c550d6a to your computer and use it in GitHub Desktop.
Script to set up AWS Sagemaker with a anaconda env and make kernel available in ipython.
#!/bin/bash
set -e
sudo -u ec2-user -i <<'EOF'
conda create --prefix ~/your_project -y -c conda-forge python=3.7 ipykernel
source activate /home/ec2-user/your_project
conda install -y your_libs
python -m ipykernel install --user
source deactivate
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment