Skip to content

Commit a6e794e

Browse files
authored
Update summary2.rst
1 parent 0a9ec54 commit a6e794e

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

docs/summary2.rst

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,47 @@ Summary day 2
88
.. keypoints::
99

1010
- Load and run and pre-installed packages
11+
1112
- Use python from module system
1213
- Start a Python shell session either with ``python`` or ``ipython``
1314
- run scripts with ``python3 <script.py>``
1415
- Check for preinstalled packages
16+
1517
- from the Python shell with the ``import`` command
1618
- from BASH shell with the
19+
1720
- ``pip list`` command at both centers
18-
- ``ml help python/3.11.8`` at UPPMAX
19-
- ``module -r spider '.*Python.*'`` at otherwise
21+
- ``module spider <package>`` at otherwise
2022

2123
- Install packages and use isolated environments
24+
2225
- With a virtual environment you can tailor an environment with specific versions for Python and packages, not interfering with other installed python versions and packages.
2326
- Make it for each project you have for reproducibility.
2427
- There are different tools to create virtual environments.
25-
- ``virtualenv`` and ``venv``
28+
29+
- ``venv``
2630
- install packages with ``pip``.
2731
- the flag ``--system-site-packages`` includes preinstalled packages as well
28-
- Conda (available everywhere but not HPC2N)
29-
- Conda is an installer of packages but also bigger toolkits
32+
- Conda (available everywhere but not HPC2N)
33+
- Conda is an installer of packages but also bigger toolkits
3034
- Conda creates isolated environments as well
3135
- requires that you install all packages needed.
32-
- Rackham: Pip or secondary conda
33-
- Bianca: conda and secondary wharf + (pip or conda)
36+
37+
- Slurm and batch
38+
39+
- The SLURM scheduler handles allocations to the calculation nodes
40+
- Batch jobs runs without interaction with user
41+
- A batch script consists of a part with *SLURM parameters* describing the allocation and a second part describing the actual work within the job, for instance one or several Python scripts.
42+
- Remember to include possible input arguments to the Python script in the batch script.
3443

3544
- Interactive work on calculation nodes
45+
3646
- Start an interactive session on a calculation node by a SLURM allocation (similar flags)
37-
- At HPC2N: ``salloc`` ...
47+
48+
- At HPC2N/PDC: ``salloc`` ...
3849
- At UPPMAX/NSC: ``interactive`` ...
39-
- At LUNARC: Desktop on demand
50+
- At LUNARC/C3SE: Desktop on demand
51+
4052
- Follow the same procedure as usual by loading the Python module and possible prerequisites.
4153

4254
- IDEs

0 commit comments

Comments
 (0)