Skip to content

Support pushing/updating benchmark task kernels via CLI #964

@42euge

Description

@42euge

Problem

kaggle kernels push fails with Kernel push error: Notebook not found when trying to update a benchmark task kernel (created via the Kaggle Benchmarks UI).

Steps to reproduce

  1. Create a benchmark task at https://www.kaggle.com/benchmarks/tasks/new
  2. The kernel appears in kaggle kernels list --user <username> and can be pulled with kaggle kernels pull
  3. Modify the notebook locally
  4. Attempt to push:
$ kaggle kernels pull eugenio0/rule-induction -p /tmp/test -m
# Works fine — pulls notebook + metadata

$ kaggle kernels push -p /tmp/test
Kernel push error: Notebook not found

The metadata file is correct (has the right id, code_file, etc.), and the kernel exists and is accessible via list and pull. But push fails.

Expected behavior

kaggle kernels push should work for benchmark task kernels the same way it works for regular kernels, allowing programmatic updates without manual upload through the UI.

Environment

  • Kaggle CLI: 2.0.1
  • kagglesdk: 0.1.17
  • OS: macOS (Darwin 25.1.0)

Additional context

The kagglesdk package already has benchmarks.services.benchmark_tasks_api_service which suggests the API exists — it's just not exposed through the CLI. This would be valuable for CI/CD workflows where benchmark tasks are version-controlled in git and deployed programmatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions