Skip to content

Commit f4dd950

Browse files
committed
Add software installation instructions
1 parent 71af8ca commit f4dd950

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

docs/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ When you complete this training you will
1212
computing such as numpy, numexpr and numba;
1313
* be able to use Cython to improve your code's performance;
1414
* be able to wrap C, C++ and Fortran code to use it from Python;
15-
* understand the opportunities and pitfalls of multithreaded
15+
* understand the opportunities and pitfalls of multi-threaded
1616
programming with Python;
1717
* be able to write distributed application using MPI;
1818
* have an understanding of how frameworks for distributed
@@ -31,7 +31,7 @@ Total duration: 4 hours.
3131
| Cython | 60 min. |
3232
| coffee break | 10 min. |
3333
| interfacing with C/C++/Fortran | 30 min. |
34-
| multithreaded programming | 10 min. |
34+
| multi-threaded programming | 10 min. |
3535
| MPI | 45 min. |
3636
| dask | 15 min. |
3737
| pyspark | 20 min. |
@@ -45,6 +45,12 @@ Slides are available in the
4545
as well as example code and hands-on material.
4646

4747

48+
## Software environment
49+
50+
Instructions on [how to create the required software environment](software_stack.md)
51+
are available.
52+
53+
4854
## Target audience
4955

5056
This training is for you if you need to use Python for computationally

docs/software_stack.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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

Comments
 (0)