| Version 10 (modified by , 5 hours ago) ( diff ) |
|---|
HPC Workshop Spring 2026
Module 4 of 8 - How to run Python on Cypress
Download examples:
git clone https://hidekiCCS:@bitbucket.org/hidekiCCS/hpc-workshop.git
What is Python?
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.
Python 2 or 3
Python 3 was incompatible with Python 2.
Python2
The last version of Python 2, released in 2010, was Python 2.7. The support for this version ended on January 1, 2020.
# HELLO PYTHON import datetime import socket now = datetime.datetime.now() print 'Hello, world!' print now.isoformat() print socket.gethostname()
Python3
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.
# HELLO PYTHON
import datetime
import socket
now = datetime.datetime.now()
print('Hello, world!')
print(now.isoformat())
print(socket.gethostname())
Why use a HPC Cluster?
- tasks take too long
- When the task to solve becomes heavy on computations, the operations are typically outsourced from the local laptop or desktop to elsewhere.
- Your computation may execute more efficiently if the code supports multithreading or multiprocessing.
- one server is not enough
- When a single computer can’t handle the required computation or analysis, the work is carried out on larger groups of servers.
How to run Python on Cypress
Creating CONDA Virtual Environment and Installing Packages
Jupyter Notebook
Download Samples by:
git clone https://hidekiCCS:@bitbucket.org/hidekiCCS/hpc-workshop.git
