Changes between Version 2 and Version 3 of Workshops/HowToRunPythonOnCypress2025August


Ignore:
Timestamp:
08/18/25 13:57:15 (3 days ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Workshops/HowToRunPythonOnCypress2025August

    v2 v3  
    22= HPC Workshop Fall 2025 =
    33= Module 3 of 5 - How to run Python on Cypress =
    4 * [[cypress/Python|Running Python on Cypress]]
     4== What is Python? ==
     5 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.
     6* [https://www.python.org/ Python]
     7
     8=== Python 2 or 3 ===
     9Python 3 was incompatible with Python 2.
     10==== Python2 ====
     11The last version of Python 2, released in 2010, was Python 2.7. The support for this version ended on January 1, 2020.
     12{{{
     13# HELLO PYTHON
     14import datetime
     15import socket
     16
     17now = datetime.datetime.now()
     18print 'Hello, world!'
     19print now.isoformat()
     20print socket.gethostname()
     21}}}
     22
     23==== Python3 ====
     24Python 3 was not just another version of Python 2 code.  Python 3 came with a new syntax intended to prevent redundant or repetitive code.
     25{{{
     26# HELLO PYTHON
     27import datetime
     28import socket
     29
     30now = datetime.datetime.now()
     31print('Hello, world!')
     32print(now.isoformat())
     33print(socket.gethostname())
     34}}}
     35
     36== How to run Python on Cypress ==
     37* [[/cypress/Python#PythonModules|Python Modules]]
    538* [[cypress/Python#RunningPythonInteractively|Running Python Interactively]]
    639* [[cypress/Python#RunningaPythonscriptinBatchmode|Running Python with Batch Mode]]
     40
     41
    742* [[cypress/Python#JupyterNotebook|Jupyter Notebook]]
    843* [[cypress/AnacondaInstallPackage|Install Packages to Anaconda Python]]