Created
September 10, 2017 04:56
-
-
Save cfperez/0b4b9875239f72c73892f4b960dd67c0 to your computer and use it in GitHub Desktop.
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 | |
ENV=${1:-"$CONDA_DEFAULT_ENV"} | |
if [ -z "$ENV" ]; then | |
echo Must specify conda environment | |
exit 1 | |
fi | |
DISPLAY_NAME=${2:-$ENV} | |
echo Installing kernel for enviroment $ENV using display name \"$DISPLAY_NAME\" | |
source activate $ENV | |
python -m ipykernel install --user --name $ENV --display-name "$DISPLAY_NAME" | |
source deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment