Skip to content

Instantly share code, notes, and snippets.

@oliverdaff
Created March 14, 2019 09:41
Show Gist options
  • Select an option

  • Save oliverdaff/482f798684c855ce8b32dd2e8c550d6a to your computer and use it in GitHub Desktop.

Select an option

Save oliverdaff/482f798684c855ce8b32dd2e8c550d6a to your computer and use it in GitHub Desktop.

Revisions

  1. oliverdaff created this gist Mar 14, 2019.
    15 changes: 15 additions & 0 deletions sage_maker_conda_env.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/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