Introduction. HPC Python. Cyrus Proctor January 23th, 2015
|
|
- Alan Jared Evans
- 5 years ago
- Views:
Transcription
1 Introduction HPC Python Cyrus Proctor January 23th, 2015
2 Why Python Easy! Nice, readable code Great for prototyping Many third party libraries Large community base Free! C. Proctor 2 Introduction
3 Python on Maverick Maverick User Guide python/2.7.6 You can install your own modules: python setup.py install --user python setup.py install --home=<dir> pip install --user module name You can use virtualenv C. Proctor 3 Introduction
4 Before We Begin XSEDE ssh gsissh -p 2222 maverick.tacc.xsede.org Local ssh -Y Python Exercises cp train00/python-hpc-2015.tar.gz. tar -xzf python-hpc-2015.tar.gz module load intel/ module load python/2.7.6 idev -t 2:00:00 -A python training C. Proctor 4 Introduction
5 Data Types Dynamic language, but also a strongly typed language Objects have a type, which is determined at runtime A variable is a value bound to a name: the value has a type, but the variable doesn t The interpreter keeps track of all variable types You can t do anything that s incompatible with the type of data you re working with: You can do string+string and it will concatenate the strings You can do integer+integer You can t do string+integer C. Proctor 5 Introduction
6 General Data Structures Python List Dynamic arrays Indexed structure Items: Python objects Items of different types Insertion and deletion at random positions C. Proctor 6 Introduction
7 General Data Structures Dictionary Associative arrays (key - value pairs) Indexed by key (string or number) Key: unique Value: any Python object Main operation: store a value with some key and extract the value given the key C. Proctor 7 Introduction
8 Python in HPC You ll hear that Python is slow If it s slow, why should you use it? If you already have a Python code, how can you fix it? You ll find help with Profiling! C. Proctor 8 Introduction
9 Profiling First Steps: examples/1 intro/interactive/prof.py Time your code 1 from math import sqrt 2 3 def hello (): 4 print " Hello world " 5 6 def sum (): 7 for i in range (10000) : 8 a = 1 9 b = 1 10 c = a+b def vector (): 13 a = [ 1., 2., 3., 4., 5., 6., 7.]* for i in a: 15 t = sqrt (i **2) 16 r = a. reverse () 17 s = a. sort () 18 print reduce ( lambda x, y: x + y, a) if name == main : 21 hello () 22 sum () 23 vector () Timing Output Use Linux built-in time 1 time python prof.py 2 Hello world real 0m2.557 s 6 user 0m2.524 s 7 sys 0m0.031 s C. Proctor 9 Introduction
10 Profiling python -m cprofile [-o output file] [-s sort order] script.py examples/1 intro/profiling.py 1 from math import sqrt 2 3 def hello (): 4 print " Hello world " 5 6 def mysum (): 7 for i in range (100000) : 8 a = 1 9 b = 1 10 c = a+b def vector (): 13 a = [ 1., 2., 3., 4., 5., 6., 7.]* for i in a: 15 t = sqrt (i **2) 16 r = a. reverse () 17 s = a. sort () 18 print reduce ( lambda x, y: x + y, a) if name == main : 21 hello () 22 mysum () 23 vector () Hello world function calls in seconds Ordered by: standard name ncalls tottime percall cumtime percall filename : lineno ( function ) prof.py :1( <module >) prof.py :12( vector ) prof.py :18( <lambda >) prof.py :3( hello ) prof.py :6( sum ) { math. sqrt } { method sort } { range } { reduce } C. Proctor 10 Introduction
11 Profiling Line-by-line timing and execution frequency with a profiler decorators to functions you want to profile Once the line profiler is installed, use kernprof -l -v prof.py 1 Hello world Wrote profile results to prof_dec.py. lprof 4 Timer unit : 1e -06 s Total time : s 8 File : prof_dec.py 9 Function : vector at line Line # Hits Time Per Hit % Time Line Contents 12 ============================================================== def vector (): a = [ 1., 2., 3., 4., 5., 6., 7.]* for i in a: t = sqrt (i **2) r = a. reverse () s = a. sort () print reduce ( lambda x, y: x + y, a) C. Proctor 11 Introduction
12 Profiling Let s Install the line profiler Tool pip install user line profiler Specific tools are installed to your /.local directory Change directory into examples/1 intro/interactive and try running python prof.py time python prof.py python -m cprofile -s cumulative prof.py python -m cprofile -s calls prof.py Decorate functions inside prof.py kernprof -l -v prof.py If you have profiled prof.py, profile some others in examples/1 intro! C. Proctor 12 Introduction
13 License c The University of Texas at Austin, 2015 This work is licensed under the Creative Commons Attribution Non-Commercial 3.0 Unported License. To view a copy of this license, visit When attributing this work, please use the following text: HPC Python, Texas Advanced Computing Center, Available under a Creative Commons Attribution Non-Commercial 3.0 Unported License.
multiprocessing HPC Python R. Todd Evans January 23, 2015
multiprocessing HPC Python R. Todd Evans rtevans@tacc.utexas.edu January 23, 2015 What is Multiprocessing Process-based parallelism Not threading! Threads are light-weight execution units within a process
More informationWhat s slow? Tools and Stories from Within Yelp s Infrastructure. Arnaud Brousseau Berkeley, 9/7/2017
What s slow? Tools and Stories from Within Yelp s Infrastructure Arnaud Brousseau Berkeley, 9/7/2017 Pro g n i l i f Tracing Caution Our agenda today! Profiling Image credits: Pion Kim What s profiling?
More informationWorkshop on Advanced Techniques for Scientific Programming and Management of Open Source Software Packages Gravitation Project
Workshop on Advanced Techniques for Scientific Programming and Management of Open Source Software Packages Gravitation Project Bellomo, Franco @fnbellomo Aguena da Silva, Michel Fogliatto, Ezequiel Romero
More informationModules and Packages. CS 339R (Python) Chapter 8
Modules and Packages CS 339R (Python) Chapter 8 Spring 2011 Loading a Module The import statement: Reads the source file Creates a module object in the current scope Executes all top-level statements You
More informationmpi4py HPC Python R. Todd Evans January 23, 2015
mpi4py HPC Python R. Todd Evans rtevans@tacc.utexas.edu January 23, 2015 What is MPI Message Passing Interface Most useful on distributed memory machines Many implementations, interfaces in C/C++/Fortran
More informationPython Optimization and Integration
[Software Development] Python Optimization and Integration Davide Balzarotti Eurecom Sophia Antipolis, France 1 When Python is not Enough Python is great for rapid application development Many famous examples...
More informationSpeeding up Python. Antonio Gómez-Iglesias April 17th, 2015
Speeding up Python Antonio Gómez-Iglesias agomez@tacc.utexas.edu April 17th, 2015 Why Python is nice, easy, development is fast However, Python is slow The bottlenecks can be rewritten: SWIG Boost.Python
More informationFunctions, Scope & Arguments. HORT Lecture 12 Instructor: Kranthi Varala
Functions, Scope & Arguments HORT 59000 Lecture 12 Instructor: Kranthi Varala Functions Functions are logical groupings of statements to achieve a task. For example, a function to calculate the average
More informationTuning Python Applications Can Dramatically Increase Performance
Tuning Python Applications Can Dramatically Increase Performance Vasilij Litvinov Software Engineer, Intel Legal Disclaimer & 2 INFORMATION IN THIS DOCUMENT IS PROVIDED AS IS. NO LICENSE, EXPRESS OR IMPLIED,
More informationBasic Python 3 Programming (Theory & Practical)
Basic Python 3 Programming (Theory & Practical) Length Delivery Method : 5 Days : Instructor-led (Classroom) Course Overview This Python 3 Programming training leads the student from the basics of writing
More information61A Lecture 2. Wednesday, September 4, 2013
61A Lecture 2 Wednesday, September 4, 2013 Names, Assignment, and User-Defined Functions (Demo) Types of Expressions Primitive expressions: 2 add 'hello' Number or Numeral Name String Call expressions:
More informationJython. secondary. memory
2 Jython secondary memory Jython processor Jython (main) memory 3 Jython secondary memory Jython processor foo: if Jython a
More informationPython Workshop. January 18, Chaitanya Talnikar. Saket Choudhary
Chaitanya Talnikar Saket Choudhary January 18, 2012 Python Named after this : Python Slide 1 was a joke! Python Slide 1 was a joke! Python : Conceived in late 1980s by Guido van Rossum as a successor to
More informationPlay with Python: An intro to Data Science
Play with Python: An intro to Data Science Ignacio Larrú Instituto de Empresa Who am I? Passionate about Technology From Iphone apps to algorithmic programming I love innovative technology Former Entrepreneur:
More informationTU Dresden: A Large-Scale Plone Deployment Case Study
Media Center TU Dresden: A Large-Scale Plone Deployment Case Study Dresden, 10/20/17 Motivation There is no real new stuf here Provide feedback to the wider Plone community 2/38 Starting Point 3/38 Starting
More informationIntroduction to Computer Programming in Python Dr. William C. Bulko. Data Types
Introduction to Computer Programming in Python Dr William C Bulko Data Types 2017 What is a data type? A data type is the kind of value represented by a constant or stored by a variable So far, you have
More informationsimpleai Documentation
simpleai Documentation Release 0.8.1 Juan Pedro Fisanotti Sep 07, 2017 Contents 1 Simple AI 3 2 Installation 5 3 Examples 7 4 More detailed documentation 9 5 Help and discussion 11 6 Authors 13 i ii simpleai
More informationBeyond Blocks: Python Session #1
Beyond Blocks: Session #1 CS10 Spring 2013 Thursday, April 30, 2013 Michael Ball Beyond Blocks : : Session #1 by Michael Ball adapted from Glenn Sugden is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike
More informationboost Documentation Release 0.1 Carl Chenet
boost Documentation Release 0.1 Carl Chenet May 06, 2017 Contents 1 Guide 3 1.1 How to install Boost........................................... 3 1.2 Configure Boost.............................................
More informationScientific Python. 1 of 10 23/11/ :00
Scientific Python Neelofer Banglawala Kevin Stratford nbanglaw@epcc.ed.ac.uk kevin@epcc.ed.ac.uk Original course authors: Andy Turner Arno Proeme 1 of 10 23/11/2015 00:00 www.archer.ac.uk support@archer.ac.uk
More informationCore Python is small by design
Core Python is small by design One of the key features of Python is that the actual core language is fairly small. This is an intentional design feature to maintain simplicity. Much of the powerful functionality
More informationLECTURE 2. Python Basics
LECTURE 2 Python Basics MODULES ''' Module fib.py ''' from future import print_function def even_fib(n): total = 0 f1, f2 = 1, 2 while f1 < n: if f1 % 2 == 0: total = total + f1 f1, f2 = f2, f1 + f2 return
More informationSlides from INF3331 lectures optimizing Python code
Slides from INF3331 lectures optimizing Python code p. 1/20 Slides from INF3331 lectures optimizing Python code Ola Skavhaug, Joakim Sundnes and Hans Petter Langtangen Dept. of Informatics, Univ. of Oslo
More informationLecture 1. basic Python programs, defining functions
Lecture 1 basic Python programs, defining functions Lecture notes modified from CS Washington CS 142 Except where otherwise noted, this work is licensed under: http://creativecommons.org/licenses/by-nc-sa/3.0
More informationCSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup
CSE 101 Introduction to Computers Development / Tutorial / Lab Environment Setup Purpose: The purpose of this lab is to setup software that you will be using throughout the term for learning about Python
More informationSTEAM Clown & Productions Copyright 2017 STEAM Clown. Page 1
What to add next time you are updating these slides Update slides to have more animation in the bullet lists Verify that each slide has stand alone speaker notes Page 1 Python 3 Running The Python Interpreter
More informationFaster Python Programs - Measure, don't Guess
Faster Python Programs - Measure, don't Guess A Training at EuroPython 2017 July 10, 2017 Rimini, Italy author: Dr.-Ing. Mike Müller email: mmueller@python-academy.de twitter: @pyacademy version: 3.6 Python
More informationRecall that strings and tuples are immutable datatypes, while lists are mutable datatypes. What does this mean?
6.189 Day 4 Readings How To Think Like A Computer Scientist, chapters 7 and 8 6.01 Fall 2009 Course Notes page 27-29 ( Lists and Iterations over lists ; List Comprehensions is optional); sections 3.2-3.4
More informationGetting started with Raspberry Pi (and WebIoPi framework)
Getting started with Raspberry Pi (and WebIoPi framework) 1. Installing the OS on the Raspberry Pi Download the image file from the Raspberry Pi website. It ll be a zip file as shown below: Unzip the file
More informationTextbook. Topic 8: Files and Exceptions. Files. Types of Files
Textbook Topic 8: Files and A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams 1 Strongly Recommended
More informationAlastair Burt Andreas Eisele Christian Federmann Torsten Marek Ulrich Schäfer. October 6th, Universität des Saarlandes. Introduction to Python
Outline Alastair Burt Andreas Eisele Christian Federmann Torsten Marek Ulrich Schäfer Universität des Saarlandes October 6th, 2009 Outline Outline Today s Topics: 1 More Examples 2 Cool Stuff 3 Text Processing
More informationTable of Contents EVALUATION COPY
Table of Contents Introduction... 1-2 A Brief History of Python... 1-3 Python Versions... 1-4 Installing Python... 1-5 Environment Variables... 1-6 Executing Python from the Command Line... 1-7 IDLE...
More information61A Lecture 2. Friday, August 28, 2015
61A Lecture 2 Friday, August 28, 2015 Names, Assignment, and User-Defined Functions (Demo) Types of Expressions Primitive expressions: 2 add 'hello' Number or Numeral Name String Call expressions: max
More informationCS150 - Sample Final
CS150 - Sample Final Name: Honor code: You may use the following material on this exam: The final exam cheat sheet which I have provided The matlab basics handout (without any additional notes) Up to two
More informationPython lab session 1
Python lab session 1 Dr Ben Dudson, Department of Physics, University of York 28th January 2011 Python labs Before we can start using Python, first make sure: ˆ You can log into a computer using your username
More informationCSC312 Principles of Programming Languages : Functional Programming Language. Copyright 2006 The McGraw-Hill Companies, Inc.
CSC312 Principles of Programming Languages : Functional Programming Language Overview of Functional Languages They emerged in the 1960 s with Lisp Functional programming mirrors mathematical functions:
More informationPython: common syntax
Lab 09 Python! Python Intro Main Differences from C++: True and False are capitals Python floors (always down) with int division (matters with negatives): -3 / 2 = -2 No variable data types or variable
More informationIntroduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines
Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical
More informationCOMP-202: Foundations of Programming. Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016
COMP-202: Foundations of Programming Lecture 2: Java basics and our first Java program! Jackie Cheung, Winter 2016 Learn about cutting-edge research over lunch with cool profs January 18-22, 2015 11:30
More informationProgramming with Python
Programming with Python Dr Ben Dudson Department of Physics, University of York 21st January 2011 http://www-users.york.ac.uk/ bd512/teaching.shtml Dr Ben Dudson Introduction to Programming - Lecture 2
More informationIntro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming
Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals
More informationCS150 Sample Final Solution
CS150 Sample Final Solution Name: Section: A / B Date: Start time: End time: Honor Code: Signature: This exam is closed book, closed notes, closed computer, closed calculator, etc. You may only use (1)
More informationPhysics 514 Basic Python Intro
Physics 514 Basic Python Intro Emanuel Gull September 8, 2014 1 Python Introduction Download and install python. On Linux this will be done with apt-get, evince, portage, yast, or any other package manager.
More informationProfiling and Optimizing Python Code
Lab 1 Profiling and Optimizing Python Code Lab Objective: Identify which portions of the code are most time consuming using a profiler. Optimize Python code using good coding practices and just-in-time
More informationIntroduction to Python
Introduction to Python Ryan Gutenkunst Molecular and Cellular Biology University of Arizona Before we start, fire up your Amazon instance, open a terminal, and enter the command sudo apt-get install ipython
More informationAlgorithms in Systems Engineering ISE 172. Lecture 3. Dr. Ted Ralphs
Algorithms in Systems Engineering ISE 172 Lecture 3 Dr. Ted Ralphs ISE 172 Lecture 3 1 References for Today s Lecture Required reading Chapter 2 References D.E. Knuth, The Art of Computer Programming,
More informationCSCI 121: Anatomy of a Python Script
CSCI 121: Anatomy of a Python Script Python Scripts We start by a Python script: A text file containing lines of Python code. Each line is a Python statement. The Python interpreter (the python3 command)
More informationChapter 2 Writing Simple Programs
Chapter 2 Writing Simple Programs Charles Severance Textbook: Python Programming: An Introduction to Computer Science, John Zelle (www.si182.com) Software Development Process Figure out the problem - for
More informationBuilt-in functions. You ve used several functions already. >>> len("atggtca") 7 >>> abs(-6) 6 >>> float("3.1415") >>>
Functions Built-in functions You ve used several functions already len("atggtca") 7 abs(-6) 6 float("3.1415") 3.1415000000000002 What are functions? A function is a code block with a name def hello():
More informationCSE 115. Introduction to Computer Science I
CSE 115 Introduction to Computer Science I Road map Review Limitations of front-end sites Web servers Examples Review
More informationIntroduction to: Computers & Programming Defining Identifiers: Objects with Names
Introduction to: Computers & Programming Defining Identifiers: Objects with Names Adam Meyers New York University Outline The types of objects with names Functions, Variables, Programs, Modules, etc. Defining
More informationCHAPTER 2: Introduction to Python COMPUTER PROGRAMMING SKILLS
CHAPTER 2: Introduction to Python COMPUTER PROGRAMMING SKILLS 1439-1440 1 Outline 1. Introduction 2. Why Python? 3. Compiler and Interpreter 4. The first program 5. Comments and Docstrings 6. Python Indentations
More informationPython StatsD Documentation
Python StatsD Documentation Release 2.0.3 James Socol January 03, 2014 Contents i ii statsd is a friendly front-end to Graphite. This is a Python client for the statsd daemon. Quickly, to use: >>> import
More informationAdvanced MPI: MPI Tuning or How to Save SUs by Optimizing your MPI Library! The lab.
Advanced MPI: MPI Tuning or How to Save SUs by Optimizing your MPI Library! The lab. Jérôme VIENNE viennej@tacc.utexas.edu Texas Advanced Computing Center (TACC). University of Texas at Austin Tuesday
More informationOpen Source Digitalization Application. Installation Manual
Open Source Digitalization Application Installation Manual Easyndexer by Raúl Diez This is version 1.1 of the Easyndexer manual. This work is licensed under the Creative Commons Attribution 3.0 Unported
More informationData type built into Python. Dictionaries are sometimes found in other languages as associative memories or associative arrays.
NETB 329 Lecture 4 Data Structures in Python Dictionaries Data type built into Python. Dictionaries are sometimes found in other languages as associative memories or associative arrays. 1 of 70 Unlike
More information1 Modules 2 IO. 3 Lambda Functions. 4 Some tips and tricks. 5 Regex. Sandeep Sadanandan (TU, Munich) Python For Fine Programmers May 30, / 22
1 Modules 2 IO 3 Lambda Functions 4 Some tips and tricks 5 Regex Sandeep Sadanandan (TU, Munich) Python For Fine Programmers May 30, 2009 1 / 22 What are they? Modules are collections of classes or functions
More informationCS150 Sample Final. Name: Section: A / B
CS150 Sample Final Name: Section: A / B Date: Start time: End time: Honor Code: Signature: This exam is closed book, closed notes, closed computer, closed calculator, etc. You may only use (1) the final
More informationPython. Jae-Gil Lee Based on the slides by K. Naik, M. Raju, and S. Bhatkar. December 28, Outline
Python Jae-Gil Lee Based on the slides by K. Naik, M. Raju, and S. Bhatkar December 28, 2011 1 Outline Introduction Installation and Use Distinct Features Python Basics Functional Example Comparisons with
More informationYou Need an Interpreter! Comp Spring /28/08 L10 - An Interpreter
You Need an Interpreter! Closing the GAP Thus far, we ve been struggling to speak to computers in their language, maybe its time we spoke to them in ours How high can we rasie the level of discourse? We
More informationCS 112: Intro to Comp Prog
CS 112: Intro to Comp Prog Importing modules Branching Loops Program Planning Arithmetic Program Lab Assignment #2 Upcoming Assignment #1 Solution CODE: # lab1.py # Student Name: John Noname # Assignment:
More informationIntroduction to Web Scraping with Python
Introduction to Web Scraping with Python NaLette Brodnax The Institute for Quantitative Social Science Harvard University January 26, 2018 workshop structure 1 2 3 4 intro get the review scrape tools Python
More informationGetting Started. Office Hours. CSE 231, Rich Enbody. After class By appointment send an . Michigan State University CSE 231, Fall 2013
CSE 231, Rich Enbody Office Hours After class By appointment send an email 2 1 Project 1 Python arithmetic Do with pencil, paper and calculator first Idle Handin Help room 3 What is a Computer Program?
More informationIntroductory Linux Course. Python II. Martin Dahlö UPPMAX. Author: Nina Fischer. Dept. for Cell and Molecular Biology, Uppsala University
Introductory Linux Course Python II Martin Dahlö UPPMAX Author: Nina Fischer Dept. for Cell and Molecular Biology, Uppsala University August, 2018 Outline Short recap Functions Similarity of sequences
More informationPython Short Course Lecture 5: Extending Python. Richard P. Muller Materials and Process Simulation Center Spring, 2000
Python Short Course Lecture 5: Extending Python Richard P. Muller Materials and Process Simulation Center Spring, 2000 Extending Python Python is great for rapid application development Little overhead
More informationWatson - Events. Release 1.0.3
Watson - Events Release 1.0.3 Jan 15, 2018 Contents 1 Build Status 3 2 Installation 5 3 Testing 7 4 Contributing 9 5 Table of Contents 11 5.1 Usage................................................... 11
More informationCMSC 201 Fall 2016 Lab 09 Advanced Debugging
CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working
More informationdjango-dynamic-db-router Documentation
django-dynamic-db-router Documentation Release 0.1.1 Erik Swanson August 24, 2016 Contents 1 Table of Contents 3 1.1 Installation................................................ 3 1.2 Quickstart................................................
More informationPython Problems MTH 151. Texas A&M University. November 8, 2017
Python Problems MTH 151 Texas A&M University November 8, 2017 Introduction Hello! Welcome to the first problem set for MTH 151 Python. By this point, you should be acquainted with the idea of variables,
More informationContents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...
Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing
More informationExam 1 Format, Concepts, What you should be able to do, and Sample Problems
CSSE 120 Introduction to Software Development Exam 1 Format, Concepts, What you should be able to do, and Sample Problems Page 1 of 6 Format: The exam will have two sections: Part 1: Paper-and-Pencil o
More informationPython INTERMEDIATE. Rapid prototyping using Python libraries and integration with local and remote services
Python INTERMEDIATE Rapid prototyping using Python libraries and integration with local and remote services The Starting Point You (should) have the basic knowledge for creating Python programs from scratch
More informationCMSC 201 Computer Science I for Majors
CMSC 201 Computer Science I for Majors Lecture 02 Intro to Python Syllabus Last Class We Covered Grading scheme Academic Integrity Policy (Collaboration Policy) Getting Help Office hours Programming Mindset
More informationIntroduction to Python for Research Workflows
Introduction to Python for Research Workflows David A. Lifka, Ph.D. Cornell Center for Advanced Computing January 20, 2012 1/20/2012 www.cac.cornell.edu 1 Research Computing Ecosystem Desktop Tools Editors
More informationOverloading. F21SC Industrial Programming: Python: Advanced Language Features. Overloading. Overloading arithmetic operations
F21SC Industrial Programming: Python: Advanced Language Features Hans-Wolfgang Loidl School of Mathematical and Computer Sciences, Heriot-Watt University, Edinburgh Semester 1 2016/17 0 No proprietary
More informationCS1 Lecture 4 Jan. 23, 2019
CS1 Lecture 4 Jan. 23, 2019 First graded discussion sections this week yesterday/today 10 DS assignments worth 2 points each everyone gets one free 2-pointer. I.e. your lowest DS grade will be replaced
More informationIn this lab we will optimize the function qr1() that computes the QR decomposition of a matrix via the modified Gram-Schmidt algorithm.
Lab 19 Profiling Lab Objective: The best code goes through multiple drafts. In a first draft, you should focus on writing code that does what it is supposed to and is easy to read. Once you have working
More informationGet It Interpreter Scripts Arrays. Basic Python. K. Cooper 1. 1 Department of Mathematics. Washington State University. Basics
Basic Python K. 1 1 Department of Mathematics 2018 Python Guido van Rossum 1994 Original Python was developed to version 2.7 2010 2.7 continues to receive maintenance New Python 3.x 2008 The 3.x version
More informationCoding Getting Started with Python
DEVNET-3602 Coding 1002 - Getting Started with Python Matthew DeNapoli, DevNet Developer Evangelist Cisco Spark How Questions? Use Cisco Spark to communicate with the speaker after the session 1. Find
More informationCMSC 201 Fall 2016 Homework 6 Functions
CMSC 201 Fall 2016 Homework 6 Functions Assignment: Homework 6 Functions Due Date: Wednesday, October 26th, 2016 by 8:59:59 PM Value: 40 points Collaboration: For Homework 6, collaboration is not allowed
More informationCS1 Lecture 3 Jan. 18, 2019
CS1 Lecture 3 Jan. 18, 2019 Office hours for Prof. Cremer and for TAs have been posted. Locations will change check class website regularly First homework assignment will be available Monday evening, due
More informationUsing Intercepts. Jen Kershaw. Say Thanks to the Authors Click (No sign in required)
Using Intercepts Jen Kershaw Say Thanks to the Authors Click http://www.ck12.org/saythanks (No sign in required) To access a customizable version of this book, as well as other interactive content, visit
More informationAt full speed with Python
At full speed with Python João Ventura v0.1 Contents 1 Introduction 2 2 Installation 3 2.1 Installing on Windows............................ 3 2.2 Installing on macos............................. 5 2.3
More informationCelery-RabbitMQ Documentation
Celery-RabbitMQ Documentation Release 1.0 sivabalan May 31, 2015 Contents 1 About 3 1.1 Get it................................................... 3 1.2 Downloading and installing from source.................................
More informationPython BASICS. Introduction to Python programming, basic concepts: formatting, naming conventions, variables, etc.
Python BASICS Introduction to Python programming, basic concepts: formatting, naming conventions, variables, etc. Identikit First appeared in 1991 Designed by Guido van Rossum General purpose High level
More informationLecture 3: Functions & Modules (Sections ) CS 1110 Introduction to Computing Using Python
http://www.cs.cornell.edu/courses/cs1110/2019sp Lecture 3: Functions & Modules (Sections 3.1-3.3) CS 1110 Introduction to Computing Using Python [E. Andersen, A. Bracy, D. Gries, L. Lee, S. Marschner,
More informationIntroduction to Python
Introduction to Python EECS 4415 Big Data Systems Tilemachos Pechlivanoglou tipech@eecs.yorku.ca 2 Background Why Python? "Scripting language" Very easy to learn Interactive front-end for C/C++ code Object-oriented
More informationInvent Your Own Computer Games with Python
Hello Wor ld! Invent Your Own Computer Games with Python Taesoo Kwon Heejin Park Hanyang University Introduction to Python Python Easier to learn than C. Serious programming language. Many expert programmers
More informationIntroduction to Python Programming
advances IN SYSTEMS AND SYNTHETIC BIOLOGY 2018 Anna Matuszyńska Oliver Ebenhöh oliver.ebenhoeh@hhu.de Ovidiu Popa ovidiu.popa@hhu.de Our goal Learning outcomes You are familiar with simple mathematical
More informationInterpreted vs Compiled. Java Compile. Classes, Objects, and Methods. Hello World 10/6/2016. Python Interpreted. Java Compiled
Interpreted vs Compiled Python 1 Java Interpreted Easy to run and test Quicker prototyping Program runs slower Compiled Execution time faster Virtual Machine compiled code portable Java Compile > javac
More informationCS115 - Module 9 - filter, map, and friends
Fall 2017 Reminder: if you have not already, ensure you: Read How to Design Programs, Intermezzo 3 (Section 18); Sections 19-23. Abstraction abstraction, n. 3a.... The process of isolating properties or
More informationSCHEME 7. 1 Introduction. 2 Primitives COMPUTER SCIENCE 61A. October 29, 2015
SCHEME 7 COMPUTER SCIENCE 61A October 29, 2015 1 Introduction In the next part of the course, we will be working with the Scheme programming language. In addition to learning how to write Scheme programs,
More informationFaster Python Programs through Optimization
Faster Python Programs through Optimization A Tutorial at PyCon US 2013 March 13, 2013 Santa Clara, CA, USA author: Dr.-Ing. Mike Müller email: mmueller@python-academy.de version: 3.1 Python Academy 2013
More informationTraffic violations revisited
Traffic violations revisited November 9, 2017 In this lab, you will once again extract data about traffic violations from a CSV file, but this time you will use SQLite. First, download the following files
More informationSCHEME 8. 1 Introduction. 2 Primitives COMPUTER SCIENCE 61A. March 23, 2017
SCHEME 8 COMPUTER SCIENCE 61A March 2, 2017 1 Introduction In the next part of the course, we will be working with the Scheme programming language. In addition to learning how to write Scheme programs,
More informationUsing Jails in FreeNAS to set up Backblaze B2
Using Jails in FreeNAS to set up Backblaze B2 A Jail can be thought of as a virtual machine within the FreeNAS system. It is an implementation of operating system-level virtualization. It allows users
More informationAPIs and API Design with Python
APIs and API Design with Python Lecture and Lab 5 Day Course Course Overview Application Programming Interfaces (APIs) have become increasingly important as they provide developers with connectivity to
More informationSD314 Outils pour le Big Data
Institut Supérieur de l Aéronautique et de l Espace SD314 Outils pour le Big Data Functional programming in Python Christophe Garion DISC ISAE Christophe Garion SD314 Outils pour le Big Data 1/ 35 License
More informationbackupchecker Documentation
backupchecker Documentation Release 1.9 Carl Chenet Apr 13, 2017 Contents 1 Guide 3 1.1 How to install Backup Checker..................................... 3 1.2 Configuration
More informationTypes, lists & functions
Week 2 Types, lists & functions Data types If you want to write a program that allows the user to input something, you can use the command input: name = input (" What is your name? ") print (" Hello "+
More information