week 3 python brush up
play

Week 3: Python brush-up Anders Roy Plan Lecture today - PowerPoint PPT Presentation

Week 3: Python brush-up Anders Roy Plan Lecture today Introduction to python packages Introduction to first mandatory assignment Exercises today Finish the exercises from last time 3 new exercises using numpy, scipy and


  1. Week 3: Python brush-up Anders Roy

  2. Plan • Lecture today • Introduction to python packages • Introduction to first mandatory assignment • Exercises today • Finish the exercises from last time • 3 new exercises using numpy, scipy and numba • At around 3 PM: The mandatory assigment will be available on the course page • Next tuesday • Philip Bille presents Massively Parallel Computation. • Materials are on the course page – so come prepared. 1

  3. Installing python packages • Use pip to install python packages. • If you don’t have it: apt install python3-pip • Now you can install Todays 3 packages: • pip3 install numpy • pip3 install scipy • pip3 install numba 2

  4. Todays packages • Numpy: Efficient package for working with matrices, etc. • SciPy: Great tools for doing scientific computations. • Numba: Speed-up your python scripts using just-in-time compilation 3

  5. Plot and find minimum of a function example 3

  6. Mandatory assignment 3

  7. Final questions 3

Recommend


More recommend