Real Data Ladder

P4.python-craft.02 · Audience: it-ml · Prerequisites: Python Craft Ladder

Real LLM grading for this pageLLM grading (this page):

The first exercises on the practice kernel (sprint VN-010): your code runs on the server, inside a sandboxed Python with pandas, scikit-learn, numpy, polars and scipy — and a real dataset mounted read-only. This is what the in-browser runner can't do: real data files and real training loops.

The workspace is the same three-panel split as Rung 1 — what changes is where the code runs and what you see afterwards:

  • The output panel shows resource metrics for every run: CPU time, peak memory, wall time. Your code's cost is measured, not guessed.
  • The kernel enforces limits — a runaway loop, a memory bomb, or a network call is stopped and told to you plainly. (Try one. It's a good way to see the sandbox working.)
  • Hidden tests never reach your browser — Submit grades them server-side.
Ask the mentor about this module

Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.

Ctrl/Cmd + Enter to send
Rung 1 — real data: train a classifier

Loading exercise…

Rung 2 — a training loop from scratch

Loading exercise…

Explore the data (kernel console)

Before the graded rungs, poke at the dataset yourself. This is a kernel console (VN-010d): ungraded, running server-side with pandas and the Palmer penguins CSV mounted read-only — nothing you do here is recorded or graded.

Python console

A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.

Datasets mounted read-only: /data/palmer-penguins/1

Output appears here.

Pick a kernel (selectable flavors)

The kernel comes in flavors (VN-010i): named environments beyond the default scientific stack. This console offers a picker — switch it to symbolic (numpy + sympy) and run exact algebra the default stack can't do. The default flavor still has pandas/scikit-learn; each flavor is its own sandboxed venv.

Python console

A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.

Output appears here.