Files
TB-Docs/presentation/sections/01_introduction.typ
T
2026-08-19 15:34:21 +02:00

85 lines
1.5 KiB
Typst

#import "../requirements.typ": *
#focus-slide(theme: "berry")[The Issue]
// = The issue
== A popular language
#align(center, image("../figs/python-logo.svg"))
Python is a widely used language, especially in data science
== It can bite
Everything is fine...
```python
transactions = load_transactions()
mean_amount = np.mean(transactions)
```
// Il y a comme un couac -> duck-typing
#pause
Until its not
```python
def load_transactions():
return [
usd_transaction,
chf_transaction
]
```
---
#{
set text(size: 0.4em)
table(
columns: (1fr, 2fr, 0.5fr, 3.5fr),
table.header[*Height*][*Country*][*Age*][*Profession*],
// range(5 * 10).map(_ => line())
..range(4 * 28).map(
i => line(
start: (0%, 0%),
end: (100%, 0%),
stroke: (
dash: (
array: (6pt, 3pt, "dot", 3pt),
phase: calc.rem(i * 13, 31) * 1pt
),
paint: gray
)
)
)
)
pause
place(
center + horizon,
dx: -2.5em,
box(
stroke: 1pt,
radius: 4pt,
width: 8em,
height: 6em,
clip: true,
fill: white,
move(
dx: -5em,
dy: -1em,
table(
columns: (6em, 6em, 6em),
rows: 1.5em,
[], [61], [],
[], [18], [],
[], [1963#place(center + horizon, ellipse(width: 2.5em, height: 2em, stroke: std.red))], [],
[], [35], [],
[], [42], [],
)
)
)
)
}