This repository contains the teaching materials for the Python Introduction module in Data Analysis II (DA2). The materials are designed to provide a hands-on, interactive learning experience. The primary tools are Jupyter Notebooks, which can be run in presentation mode to combine slides-style teaching with interactive coding.
hello-world.slides.html: A slide-based interactive notebook covering fundamental Python concepts.hello-universe.slides.html: A continuation that builds on the basics, introducing advanced concepts.
Both files are compatible with Jupyter's RISE extension for interactive presentation mode.
-
Interactive Code Blocks:
- Students can modify and execute code directly in the slides.
- Immediate feedback and real-time interaction make it easier to grasp concepts.
-
Presentation Mode:
- The Jupyter notebooks are pre-configured to run in presentation mode using RISE.
- The slides retain all notebook interactivity while offering a polished teaching interface.
-
Topics Covered:
hello-world: Python syntax, control flows, and basic data types.hello-universe: Covers basics of numpy, pandas, scikit-learn and statsmodels.
-
Install Jupyter and RISE:
- Ensure you have Jupyter Notebook installed.
- Install RISE to enable presentation mode:
pip install rise
-
Run the Notebooks:
- Open Jupyter Notebook in your terminal:
jupyter notebook
- Navigate to the respective notebook (
hello-world.slides.htmlorhello-universe.slides.html). - Press the
Run Slide Showbutton to start the interactive presentation.
- Open Jupyter Notebook in your terminal:
- Encourage students to experiment with the code snippets during the presentation to deepen their understanding.
- Adapt the content dynamically by editing code cells directly in the slides to suit the flow of the session.
Feel free to adapt and use these materials for educational purposes. Proper attribution is appreciated.