From DiLab
Jump to: navigation, search

Arhīva lapa

Uzmanību: šī lapa satur novecojušu informāciju - tā ir jau notikuša LU DF semināra informācijas arhīvs.

Seminar: Getting things done with Python

In this seminar you will learn about the Python programming language, its libraries and frameworks.

The goal of the seminar is to give participants an insight into Python programming language and what can be done with it (including how it is used in practice). You will also learn how to use Python for data analysis and visualization.

Specseminārā tiks iepazīta Python programmēšanas valoda kā arī tās bibliotēkas un ietvari. Semināra mērķis ir dot ieskatu gan valodā, tās iespējās, gan plašajā pielietojumu lokā. Seminārā Python tiks lietots dažādu datu apstrādei un vizualizācijai.


Update: lectures will take place online (Zoom)



Important links:



Information and Resources


Seminar takes place on Fridays @ 14:30

  • location: room 336 (LU, Raiņa bulv. 19)


Seminar materials

Seminar materials can be found in the GitHub repository:


Last year's (Autumn 2019) repository:


Course Requirements and Grading

  • Course Project (in groups of 2-3 students or individually) = up to 7 points (out of 10)
    • Project should be a Python program or notebook
    • Scope: project theme examples will be discussed in lectures


  • Presentations and participation in class = up to 4 points (optional)
    • Presentation on a cool Python library or project = 1..3 points
      • 3 points = long and serious presentation (30 min)
      • 2 points = medium presentation (10-15 min)
      • 1 point = short presentation
    • Participation in class = 1 point
      • ... or/and Python exercises solved on Project Euler,, other exercise sites


  • Attend at least 50% of seminars


  • Submitted course evaluation in LUIS (mandatory)


Note: sign up for presentations ahead of time

Course Project

During the course, students are required to complete a project that accomplishes a non-trivial programming / data processing task using Python tools.

  • projects can be developed in teams of 2-3 people or individually.

Possible project topics:

  • process, analyze, and/or visualize one or more datasets
  • develop a simple game
  • web or desktop application
  • ... other ideas ...

Data sets can come from a variety of sources, such as,, or faculty.

All processing and visualization will have to be done in the Python programming language with the appropriate Pyhon libraries.

  • you can use libraries covered in the course or/and from outside the course.

Other topics may also be selected with prior agreement with the faculty.

Submit your project topic:

Final project topic sign-up form:

Final project presentations

Project presentation = during the last class (29.05.2020 @ 14:30)

  • Location: online (Zoom teleconference)


Project presentation = 5-10 min. presentation consisting of:

  • Introduction (what the work is about)
  • Project realization (what was programmed, what software was used)
  • Demonstrations of results

You have to show what the project has done in practice = show code and results.


Each group should send an email to uldis.bojars(at) (with text "Python seminar" in the subject line) containing:

  • project description (including a list of group members + info about the role of each participant)
  • developed source code (or its URL at Github, Gitlab etc)
  • work results (e.g. Jupyter notebook)

Why Python?

  • Python is easy to use and effective.
  • Its code is easy to read and write.
  • Python is a flexible language that can support many programming paradigms.
  • Suitable for beginners and professionals alike.
  • Popular and well-supported.
  • Used by large and small companies and organizations worldwide.
  • Used in many courses and workshops.


The seminar consists of two parts:

  • Introduction to the Python programming language (What is Python)
    • Assumption: participants know the basics of programming and, preferably, already know other programming languages
  • Practical applications of Python, with examples (Getting things done with Python)


This seminar is lead by Uldis Bojārs and Valdis Saulespurēns.

Experts who might present guest lectures at the seminar:

  • Leo Seļāvo (LU DF)
  • Jānis Zuters (LU DF, par mašīnmācīšanos)
  • Normunds Gruzītis (LU MII, par NLP)
  • Pēteris Paikens (LU MII)
  • ...


Grading will be based on your participation in the seminar (and its discussions) and your group project work.

 * Participants will do a practical project using Python. Projects can be done in groups of two.

At the end of the course participants must fill out the course evaluation questionnaire in LUIS (this is a formal requirement for all courses).