#!/bin/bash
set -e

# curl -sSL https://tinyurl.com/hasml1 | bash

# install uv

# curl -LsSf https://astral.sh/uv/install.sh | sh

# add uv to path

export PATH="$HOME/.local/bin/:$PATH"

# download from https://repo.swisschili.sh/ml/lesson1.zip and unzip into ~/Downloads/ml-lesson1

mkdir -p ~/Downloads ~/Desktop/ml-lesson1
curl -L https://repo.swisschili.sh/ml/lesson1.zip -o ~/Downloads/lesson1.zip
unzip -q ~/Downloads/lesson1.zip -d ~/Desktop/ml-lesson1
rm ~/Downloads/lesson1.zip

cd ~/Desktop/ml-lesson1
uv sync
uv run jupyter-lab lesson1.ipynb
