Changes between Version 12 and Version 13 of Workshops/HowToRunPythonOnCypress2025August


Ignore:
Timestamp:
08/27/2026 10:45:23 AM (7 days ago)
Author:
fuji
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Workshops/HowToRunPythonOnCypress2025August

    v12 v13  
    77}}}
    88== What is Python? ==
    9  Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.
     9 Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components.
    1010* [https://www.python.org/ Python]
    1111
     
    1313Python 3 was incompatible with Python 2.
    1414==== Python2 ====
    15 The last version of Python 2, released in 2010, was Python 2.7. The support for this version ended on January 1, 2020.
     15The last version of Python 2, released in 2010, was Python 2.7. Support for this version ended on January 1, 2020.
    1616{{{
    1717# HELLO PYTHON
     
    2626
    2727==== Python3 ====
    28 Python 3 was not just another version of Python 2 code.  Python 3 came with a new syntax intended to prevent redundant or repetitive code.
     28Python 3 was not just another version of Python 2 code.  Python 3 introduced new syntax to prevent redundant or repetitive code.
    2929{{{
    3030# HELLO PYTHON
     
    3737print(socket.gethostname())
    3838}}}
     39==== Python2 or Python3 ? ====
     40* If you are new to '''Python''' and plan to write '''Python''' code, you should use '''Python 3'''.
     41* If you use a '''Python''' application downloaded from another source, check its documentation to determine which version of '''Python''' is required.
     42 * Only use '''Python 2''' if you are required to run or maintain a legacy application that specifically depends on it.
    3943
    40 == Why use a HPC Cluster? ==
     44== Why use an HPC Cluster? ==
    4145* '''tasks take too long'''
    4246 * When the task to solve becomes heavy on computations, the operations are typically outsourced from the local laptop or desktop to elsewhere.