Search Docs by Keyword

Table of Contents

Python Programming Language

What is Python?

Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.

Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly procedural), object-oriented and functional programming. It is often described as a “batteries included” language due to its comprehensive standard library.

Package Managers

FASRC clusters use mamba.  Mamba is available on the FASRC cluster as a software module either as Mambaforge or as python/3* which is aliased to mamba. For more information on Mamba and it’s usage on FASRC clusters, see the Python Package Installation entry.

Best Practices

TBD.

Examples

Serial Python

examples: https://github.com/fasrc/User_Codes/tree/master/Languages/Python

Parallel Computing

Take a look at the python documentation for the multiprocessing library.   We have a few examples for parallel computing using it: https://github.com/fasrc/User_Codes/tree/master/Parallel_Computing/Python

References

© The President and Fellows of Harvard College
Except where otherwise noted, this content is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.