Guest User

Untitled

a guest
Jan 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. ### Synchronization for conda environments
  2. Seems like the easiest way to syncronize conda environments is
  3. to define bash functions that save and load a specified environment
  4. in a predefined folder.
  5. The folder is syncronized with Dropbox or similar service.
  6.  
  7. Function definition:
  8. in the .bashrc or .bash_aliases
  9.  
  10. ```
  11. conda-save() {
  12. conda-env export --name "$1" > *path_to_the_folder*/"$1".yml
  13. }
  14.  
  15. conda-load() {
  16. conda-env update --name "$1" --file *path_to_the_folder*/"$1".yml
  17. }
  18. ```
Add Comment
Please, Sign In to add comment