|
| 1 | +# Software stack |
| 2 | + |
| 3 | +This training requires a non-trivial software stack so using the conda package |
| 4 | +manager will simplify your life considerably. |
| 5 | + |
| 6 | + |
| 7 | +## git version control |
| 8 | + |
| 9 | +The repository for this training session is available on Github, and cloning this |
| 10 | +repository on you own machine will give you access to all training material. |
| 11 | + |
| 12 | +If you don't have a git client installed, consult the following [web page on how to |
| 13 | +install](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) one on |
| 14 | +your platform of choice. |
| 15 | + |
| 16 | + |
| 17 | +## Python & conda |
| 18 | + |
| 19 | +The most convenient way to install the required software is using the conda |
| 20 | +environment manager. conda is available on Linux, MacOS and Windows. You can use |
| 21 | +conda from the command line when you install miniconda which is available for |
| 22 | +[download](https://docs.conda.io/en/latest/miniconda.html). The website provides |
| 23 | +installation instructions for each platform. |
| 24 | + |
| 25 | +Remember to install miniconda on a file system with enough free space since conda |
| 26 | +environments quickly take multiple gigabytes of disk space. |
| 27 | + |
| 28 | +Alternatively, you can install Anaconda, a GUI application to manage Python |
| 29 | +environments. For Windows, this may be the most convenient option. Anaconda is |
| 30 | +available for Windows, MacOS and Linux and can be downloaded from the |
| 31 | +[Anaconda website](https://www.anaconda.com/products/individual). |
| 32 | + |
| 33 | + |
| 34 | +## Training environment |
| 35 | + |
| 36 | +To create and use the conda environment for this training, open a terminal window and |
| 37 | +follow the steps below. |
| 38 | + |
| 39 | +1. Clone the Github repository: |
| 40 | + ```bash |
| 41 | + $ git clone [email protected]:gjbex/Python-for-HPC.git |
| 42 | + ``` |
| 43 | +2. Change into the newly created directory: |
| 44 | + ```bash |
| 45 | + $ cd Python-for-HPC |
| 46 | + ``` |
| 47 | +1. Create the conda environment for this training session: |
| 48 | + ```bash |
| 49 | + $ conda env create -f environment.yml |
| 50 | + ``` |
| 51 | +1. Activate the environment: |
| 52 | + ```bash |
| 53 | + $ conda activate python_for_hpc |
| 54 | + ``` |
| 55 | + |
| 56 | +Now you can run Python scripts in this terminal, or start a Jupyter notebook. |
0 commit comments