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

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend