This repo is for the class on 'Programming in Python for Social Scientists' at the Faculty of Psychology, University of Warsaw. It was mostly designed to use with Google Colab, but if you know what you are doing you can use it with Anaconda or any other environment with Jupyter Notebook App. In the folder slides, there are subfolders with LaTeX files for building pdf files. You are welcome to use them if you know LaTeX and you have xelatex installed.
Users who want to use the materials online in Google Colab should follow these steps to access the interactive notebooks:
- Go to www.colab.research.google.com (it is better to have a Google Account but not necessary).
- Press GitHub in the popup window or press File and Open notebook.
- Type
MikoBiein the search box (compare the picture below).
- Pick the relevant repository:
ppss - Choose the relevant notebook and click Open Notebook.
That is it, an interactive notebook should open. Or alternatively you can use the links below:
- Overview of basic programming concepts
- Branching and Iterations (Homework Assignment 1)
- Operations on strings (Homework Assignment 2)
- Functions (Homework Assignment 3)
- Tuples, Lists, Aliasing, Mutability, and Cloning (Homework Assignment 4)
- Dictionaries (mappings) and JSON
- Files (Homework Assignment 5)
For more advanced users I recommend running Jupyter Notebooks on their local machines. In the long shot, it is just easier.
- python3.9 (anaconda distribution is preferred)
- other python dependencies are specified in
requirenments.txt
- Cloen the repo:
git@github.com:MikoBie/ppss - Set up the proper virtual environment with python3.9
- Install all the dependencies from
requirenments.txt
For building all presentations and manuals from the source code you need to have TexLive2019 or newer installed on your machine and Latin modern family of fonts. I used xelatex to build them.