Skip to content

Latest commit

 

History

History
55 lines (21 loc) · 868 Bytes

reusable-environment.md

File metadata and controls

55 lines (21 loc) · 868 Bytes

Reusable environment for Methods

Virtual Environment

Create and use python environment

python -m venv /path/to/new/virtual/environment

Create and use python environment

C:\> <venv>\Scripts\activate.bat

Dockerize

Freezing requirements

Generate requirements.txt document

when all packages are installed and run

pip freeze > requirements.txt

Loading all dependencies from the requirements.txt file

pip install -r requirements.txt

Reproducibility measures

Using reproducibility tools e.g.,

https://pypi.org/project/reproducible/

Generating random seeds

https://docs.python.org/3/library/random.html

Github reproducible project structures

https://github.com/calekochenour/project-structure

https://gist.github.com/ericmjl/27e50331f24db3e8f957d1fe7bbbe510