Skip to content

Custom Kaggle API

Shawn Santhoshgeorge edited this page Feb 27, 2024 · 5 revisions

Why?

When we try to use the official Kaggle API to pull data that is required to compute the Public Leaderboard, we encounter the following bug. The custom wheels implements the following change.

Wheel Build

If a new version of Kaggle is released, and the above bug has not been fixed, then follow these steps here to update Kaggle API.

  1. To build the wheel, it requires the build package

    pip install --upgrade build
  2. Download the build files related to the latest version of the API

  3. Implement the change

  4. Build the wheel

    python -m build --wheel
  5. Move the wheel file from dist folder to the wheels folder inside Datathon-Leaderboard/wheels

  6. Push the new wheel to the main branch

  7. Update the kaggle line in the Pipfile and reinstall the packages

  8. Push the new commits to main

Clone this wiki locally