Skip to content

Instantly share code, notes, and snippets.

@montali
Created April 2, 2021 09:46
Show Gist options
  • Save montali/15aae3bb3928d1fbe775552f8b37734f to your computer and use it in GitHub Desktop.
Save montali/15aae3bb3928d1fbe775552f8b37734f to your computer and use it in GitHub Desktop.
Creates a new conda environment and adds it to Jupyter
#!/usr/bin/env bash
source /opt/anaconda3/etc/profile.d/conda.sh
conda activate my_env
conda create --name $1 python=3.9
conda activate $1
conda install -c anaconda ipykernel
python -m ipykernel install --user --name=$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment