Created
March 14, 2019 09:41
-
-
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.
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 | |
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