Skip to content

Instantly share code, notes, and snippets.

@atgmello
Last active March 10, 2020 13:11
Show Gist options
  • Save atgmello/838e239b5900c912d5f9e5ccebdfb9cc to your computer and use it in GitHub Desktop.
Save atgmello/838e239b5900c912d5f9e5ccebdfb9cc to your computer and use it in GitHub Desktop.
Jupyter setup automation for the DS4A LATAM 2020 course cases.
#!/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