# fraekfyr91/ex-class-6-7 architecture

> Architecture diagram of the GitHub repository fraekfyr91/ex-class-6-7, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fraekfyr91/ex-class-6-7
- Repository: https://github.com/fraekfyr91/ex-class-6-7

## Overview

##### Project Type and Purpose
- This is an educational “workshop series” repository, containing Jupyter notebooks and accompanying Python scripts for in-class exercises in an Intro to Programming & Numerical Analysis course.
- There is no traditional frontend/backend or microservice architecture—rather, it’s a set of self-contained modules (workshops) each demonstrating specific numerical or programming concepts.

##### Top-Level Structure
- README.md: overview of the workshop series.
- test.py & test.ipynb: likely sample or template exercises.
- Folders named “workshop 1” through “workshop 13”: each holds a .ipynb and, where needed, helper .py scripts.
- Some checkpoint and __pycache__ directories are artifacts of notebook usage.

##### Core Components to Model
a. Workshop Modules
- Workshop folder as a distinct module/component.
- Inside each, distinguish between Jupyter notebooks (.ipynb) and Python scripts (.py).
b. Execution Environment
- A single Python runtime (e.g., Anaconda) with Jupyter Notebook server.
- Underlying numerical libraries (NumPy, SciPy, pandas, Matplotlib etc.) as shared services.
c. Student/User Interaction
- The end user runs the Jupyter server, opens notebooks, and executes cells.
- Scripts are either imported into notebooks or run standalone.

##### Relationships and Data Flows
- Notebooks → import → Python helper scripts.
- Notebooks/scripts → invoke → numerical libraries.
- Student → interacts with → Notebook UI.
- All modules share the common runtime environment and library dependencies.

##### Architectural Patterns and Principles
- Modular decomposition: each workshop is an isolated module.
- Reuse: Python utility scripts are factored out for exercises within a workshop.
- Layered view:
- Presentation layer: Jupyter Notebook interface.
- Logic layer: Python scripts and notebook code.
- Library layer: external numerical packages.

##### Technologies and Frameworks
- Jupyter Notebook
- Python 3.x
- Numerical/analysis libraries (NumPy, SciPy, pandas, Matplotlib)
- Version control (Git) for the repository itself

2. From the server, branch out to 13 “Workshop” containers.
3. Inside each container, show two sub-components:
– Notebook (.ipynb)
– Helper script(s) (.py), if present
4. Notebook and script component back to a central “Python Runtime + Libraries” node.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% User and Server
    User["Student/User"]:::frontend
    User -->|"interacts with"| Jupyter["Jupyter Notebook Server"]:::frontend

    %% Shared Runtime and Libraries
    Runtime["Python Runtime + Libraries<br/>(NumPy, SciPy, pandas, Matplotlib)"]:::runtime

    %% Workshops Container
    subgraph "Workshop Modules"
        direction TB

        subgraph "Workshop 1"
            W1NB["Workshop1.ipynb"]:::code
        end

        subgraph "Workshop 2"
            W2NB["Workshop2.ipynb"]:::code
        end

        subgraph "Workshop 3"
            W3NB["workshop 3.ipynb"]:::code
            W3PY["workshopex.py"]:::code
        end

        subgraph "Workshop 4"
            W4NB["workshop 4.ipynb"]:::code
            W4PY["classy_mc_classface.py"]:::code
            W4CP["workshop 4-checkpoint.ipynb"]:::code
        end

        subgraph "Workshop 5"
            W5NB["workshop 5.ipynb"]:::code
            W5PY["consumer.py"]:::code
        end

        subgraph "Workshop 6"
            W6NB["workshop 6.ipynb"]:::code
            W6PY1["HouseholdSpecializationModel.py"]:::code
            W6PY2["ps2extra.py"]:::code
        end

        subgraph "Workshop 7"
            W7NB["Workshop 7.ipynb"]:::code
        end

        subgraph "Workshop 8"
            W8NB["Workshop 8.ipynb"]:::code
        end

        subgraph "Workshop 9"
            W9NB["Workshop 9.ipynb"]:::code
        end

        subgraph "Workshop 10"
            W10NB["Workshop 10.ipynb"]:::code
        end

        subgraph "Workshop 11"
            W11NB["Workshop 11.ipynb"]:::code
        end

        subgraph "Workshop 12"
            W12NB["Workshop 12.ipynb"]:::code
            W12PY["ConsumptionSaving.py"]:::code
        end

        subgraph "Workshop 13"
            W13NB["Workshop 13.ipynb"]:::code
            W13PY["Cournot.py"]:::code
        end

    end

    %% Sample/Test Exercises and Documentation
    subgraph "Additional Files"
        direction TB
        TestNB["test.ipynb"]:::code
        TestPY["test.py"]:::code
        Readme["README.md"]:::code
    end

    %% Connections from Server to Modules
    Jupyter -->|"hosts notebooks"| W1NB
    Jupyter -->|"hosts notebooks"| W2NB
    Jupyter -->|"hosts notebooks"| W3NB
    Jupyter -->|"hosts notebooks"| W4NB
    Jupyter -->|"hosts notebooks"| W5NB
    Jupyter -->|"hosts notebooks"| W6NB
    Jupyter -->|"hosts notebooks"| W7NB
    Jupyter -->|"hosts notebooks"| W8NB
    Jupyter -->|"hosts notebooks"| W9NB
    Jupyter -->|"hosts notebooks"| W10NB
    Jupyter -->|"hosts notebooks"| W11NB
    Jupyter -->|"hosts notebooks"| W12NB
    Jupyter -->|"hosts notebooks"| W13NB
    Jupyter -->|"hosts files"| TestNB
    Jupyter -->|"hosts files"| TestPY
    Jupyter -->|"provides docs"| Readme

    %% Notebook imports scripts
    W3NB -->|"imports"| W3PY
    W4NB -->|"imports"| W4PY
    W5NB -->|"imports"| W5PY
    W6NB -->|"imports"| W6PY1
    W6NB -->|"imports"| W6PY2
    W12NB -->|"imports"| W12PY
    W13NB -->|"imports"| W13PY

    %% All code to Runtime
    W1NB -->|"runtime calls"| Runtime
    W2NB -->|"runtime calls"| Runtime
    W3NB -->|"runtime calls"| Runtime
    W3PY -->|"runtime calls"| Runtime
    W4NB -->|"runtime calls"| Runtime
    W4PY -->|"runtime calls"| Runtime
    W4CP -->|"runtime calls"| Runtime
    W5NB -->|"runtime calls"| Runtime
    W5PY -->|"runtime calls"| Runtime
    W6NB -->|"runtime calls"| Runtime
    W6PY1 -->|"runtime calls"| Runtime
    W6PY2 -->|"runtime calls"| Runtime
    W7NB -->|"runtime calls"| Runtime
    W8NB -->|"runtime calls"| Runtime
    W9NB -->|"runtime calls"| Runtime
    W10NB -->|"runtime calls"| Runtime
    W11NB -->|"runtime calls"| Runtime
    W12NB -->|"runtime calls"| Runtime
    W12PY -->|"runtime calls"| Runtime
    W13NB -->|"runtime calls"| Runtime
    W13PY -->|"runtime calls"| Runtime
    TestNB -->|"runtime calls"| Runtime
    TestPY -->|"runtime calls"| Runtime

    %% Click Events
    click W1NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 1/Workshop1.ipynb"
    click W2NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 2/Workshop2.ipynb"
    click W3NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 3/workshop 3.ipynb"
    click W3PY "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 3/workshopex.py"
    click W4NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 4/workshop 4.ipynb"
    click W4PY "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 4/classy_mc_classface.py"
    click W4CP "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 4/.ipynb_checkpoints/workshop 4-checkpoint.ipynb"
    click W5NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 5/workshop 5.ipynb"
    click W5PY "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 5/consumer.py"
    click W6NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 6/workshop 6.ipynb"
    click W6PY1 "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 6/HouseholdSpecializationModel.py"
    click W6PY2 "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 6/ps2extra.py"
    click W7NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 7/Workshop 7.ipynb"
    click W8NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 8/Workshop 8.ipynb"
    click W9NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 9/Workshop 9.ipynb"
    click W10NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 10/Workshop 10.ipynb"
    click W11NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 11/Workshop 11.ipynb"
    click W12NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 12/Workshop 12.ipynb"
    click W12PY "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 12/ConsumptionSaving.py"
    click W13NB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 13/Workshop 13.ipynb"
    click W13PY "https://github.com/fraekfyr91/ex-class-6-7/blob/main/workshop 13/Cournot.py"
    click TestNB "https://github.com/fraekfyr91/ex-class-6-7/blob/main/test.ipynb"
    click TestPY "https://github.com/fraekfyr91/ex-class-6-7/blob/main/test.py"
    click Readme "https://github.com/fraekfyr91/ex-class-6-7/blob/main/README.md"

    %% Styles
    classDef frontend fill:#D6EFFF,color:#000,stroke:#0050A0,stroke-width:1px
    classDef code fill:#E0FFE0,color:#000,stroke:#007A00,stroke-width:1px
    classDef runtime fill:#FFE0B3,color:#000,stroke:#A06000,stroke-width:1px
```
