Last active
December 20, 2022 02:47
-
-
Save fcoclavero/4c1241b1a95c6527d7370c9bb9234fcf to your computer and use it in GitHub Desktop.
Conda cheatsheet
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
# Backup environment to file | |
conda env export --channel $ENV_NAME --file "$FILE_PATH.yaml" | |
# Clone conda env | |
conda create --name myclone --clone root |
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
conda create -n my_conda python=3 # Or python=2 for Python 2 | |
source activate my_conda # On Windows, remove the word 'source' | |
conda install ipykernel # install Python kernel (ipykernel) into the conda environment | |
python -m ipykernel install # install python kernel into nteract's available kernel list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment