Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

standardizing compute environments #3

Closed
3 tasks done
soniapolt opened this issue Nov 8, 2019 · 4 comments
Closed
3 tasks done

standardizing compute environments #3

soniapolt opened this issue Nov 8, 2019 · 4 comments
Assignees

Comments

@soniapolt
Copy link
Collaborator

soniapolt commented Nov 8, 2019

  • common data

  • general path function

  • reproducible virtual environments based on requirements.txt

    • Should be able to pip install -r requirements.txt to fully reproduce virtualenv
@cjnani16
Copy link
Owner

cjnani16 commented Nov 9, 2019

Thus far I can only anticipate running this on Nyla and 'Amoxicillin' so I guess some sort of switch which sets paths to data on the fs based on hostname is going to be very achievable.

Also generating the requirements.txt will be hugely helpful!

@eshedmargalit
Copy link
Collaborator

Just so it's recorded somewhere, here's how I reproduce virtual environments across machines:

  1. Enter the virtual environment you want to clone, however you normally do (whether conda or virtualenv or pyenv)
pyenv activate some_environment
  1. Save the installed pip packages to a requirements file
pip freeze > requirements.txt
  1. Commit the new requirements file
git add requirements.txt
git commit -m "adds requirements file for virtual environment"
  1. Clone or pull the repo on other machine via git pull

  2. Create a new virtual environment on the other machine with conda, virtualenv, pyenv, etc

pyenv virtualenv some_environment

Enter the new virtualenv if needed.

  1. Install the requirements cloned from the repo
pip install -r requirements.txt

And done!

@cjnani16
Copy link
Owner

cjnani16 commented Nov 9, 2019 via email

@eshedmargalit
Copy link
Collaborator

eshedmargalit commented Nov 15, 2019

To-dos 2019115

  • Add to general path function a checkpoints path

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants