Practice sessions
- Attending at least 8 of the 10 practice sessions is compulsory: after missing 2 practice sessions, each additional missed practice session results in losing 2 points. Consult your attendances in Moodle.
Before the first practice session
Before the first practice session please make sure that you have Python version 3 and Jupyter Notebook installed on your computer (you may use JupyterLab instead if you prefer, or any other IDE for that matter, considering that you are aware of how to use it without breaking the homework's structure). If you don't have it yet, then we recommend to choose between the following options:
- Full Anaconda:
- Install Anaconda (Jupyter Notebook is included)
- Anaconda (it has most of the necessary packages installed and GUI, however, it takes 3 Gb of space)
- Install Anaconda (Jupyter Notebook is included)
- Mini-version of Anaconda:
- Install MiniConda and Jupyter Notebook
- MiniConda (it only installs Python and Conda and a few packages. no unnecessary space taken, but more installing will be needed later)
pip install notebook(install Jupyter Notebook)
- Install MiniConda and Jupyter Notebook
- No Anaconda, relying on the system Python:
- You can install Python separately by going to: https://www.python.org/downloads/ . This is only recommended for those who already know Python.
- Then install Jupyter Notebook with
pip install notebook
- Then install Jupyter Notebook with
- You can install Python separately by going to: https://www.python.org/downloads/ . This is only recommended for those who already know Python.
After installing Jupyter Notebook you can simply run jupyter notebook from command line:
jupyter notebook(alternatively open Anaconda prompt to open Jupyter Notebook)
If you use Python in multiple courses and potentially different versions of packages, then you might want to create an environment into which you would install the packages needed for this course:
- Optional: Creating and using an environment:
- Creating a new virtual environment for this course after installation of Conda
conda create -n IDS python=3.13(create a new environment)
- Now you should activate the environment before launching Jupyter notebook:
conda activate IDSoractivate IDS(Windows) orsource activate IDS(Linux, Mac) - activates the environmentconda install jupyter(make sure the environment is activated before installing)jupyter notebook(make sure the environment is activated)
- Any further installations must then also be done within the environment
- The environment can be closed by
conda deactivate
- Creating a new virtual environment for this course after installation of Conda
Practice session 01 - Sept 07-09 - Introduction
Useful materials:
Jupyter Notebook Tutorial video
Practice materials:
Introduction to Jupyter Notebook
Practice materials in Estonian:
Jupyter ja alustamine
Practice session 02 - Sept 14-16 - DataFrames and Plotting
Notebooks (zip): Tutorial for dataframes and plotting
Notebooks in Estonian (zip): Andmetabelid ja joonised
Practice session 03 - Sept 21-23
Extra material: Pandas (NBA dataset)
Extra material in Estonian: NBA andmete uurimine
Practice session 04 - Sept 28-29
Extra material: Grammar of graphics with plotnine