Add validation warnings to %choose magic for missing tasks/runs#128
Add validation warnings to %choose magic for missing tasks/runs#128kaggle-agent wants to merge 2 commits intocifrom
Conversation
When users run `%choose` with no tasks defined, they previously got a confusing "run or evaluate" message. Now the magic distinguishes between no tasks defined (links to @kbench.task docs) and tasks defined but not run (links to .run()/.evaluate() docs). Warning styling uses red text with code blocks at the same font size. Co-authored-by: kaggle-agent <[email protected]>
|
@kaggle-agent this is completely wrong. The logic should live entirely in typescript/projects/kernel-editor/src/kernels/components/benchmarks/utils.tsx. Remember my instructions: This should be a follow up to https://github.com/Kaggle/kaggleazure/pull/41465/changes. The "new message" I'm referring to is the message that starts with "Building a task requires benchmark results." |
Follow-up to PR #41465: when no tasks are defined in the notebook, users saw the "run or evaluate" message which was confusing. Now we show a distinct "No tasks detected" message linking to the @kbench.task docs. Also adds doc links on .run()/.evaluate() text pointing to quick_start.md#basic-task. Co-authored-by: kaggle-agent <[email protected]>
|
Re: @psbang's review: You're right, I apologize. I've fully reverted the Python SDK changes ( Changes to
All messages use the same |
When users run
%choosewith no tasks defined, they previously gota confusing "run or evaluate" message. Now the magic distinguishes
between no tasks defined (links to @kbench.task docs) and tasks
defined but not run (links to .run()/.evaluate() docs). Warning
styling uses red text with code blocks at the same font size.
Co-authored-by: kaggle-agent [email protected]
Task: psbang-20260410141748-045eace4
Context: https://chat.kaggle.net/kaggle/pl/da7aknogw7g5xr5yrj6ep4jr7e