Last active
March 10, 2020 13:11
-
-
Save atgmello/838e239b5900c912d5f9e5ccebdfb9cc to your computer and use it in GitHub Desktop.
Jupyter setup automation for the DS4A LATAM 2020 course cases.
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 | |
eval "$(conda shell.bash hook)" | |
cd $1 | |
echo "" | |
if [ ! -f osx_env.yml ]; then | |
echo "Cant find osx_env.yaml file!" | |
exit | |
fi | |
# Grab correct environment name | |
ds4a_env_name=$(grep "name" osx_env.yml | awk '{print $2}') | |
# Activate the right environment | |
echo "Activating ${ds4a_env_name}" | |
echo "..." | |
conda activate ${ds4a_env_name} | |
echo "Done!" | |
echo "" | |
# Launch jupyter notebook | |
echo "Launching Jupyter Notebook" | |
echo "..." | |
echo "" | |
jupyter notebook | |
echo "" | |
echo "All done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment