The existing code in the notebook for setting Kaggle credentials uses the Colab-specific userdata.get API, which may not work outside Colab. The added method works in different environments. It simply creates a .kaggle directory and writes the API token to a kaggle.json file.
Description of the change
The added cell configures the Kaggle credentials on a local machine or Google Colab by creating the necessary directory and configuration file for the Kaggle API token.
Motivation
The existing cell works only for Google Colab.
Type of change
Feature request
Checklist
[x] I have performed a self-review of my code.
[x] I have added detailed comments to my code where applicable.
[x] I have verified that my change does not break existing code.
[x] My PR is based on the latest changes of the main branch (if unsure, please run git pull --rebase upstream main).
[x] I am familiar with the Google Style Guide for the language I have coded in.
The existing code in the notebook for setting Kaggle credentials uses the Colab-specific userdata.get API, which may not work outside Colab. The added method works in different environments. It simply creates a .kaggle directory and writes the API token to a kaggle.json file.
Description of the change
The added cell configures the Kaggle credentials on a local machine or Google Colab by creating the necessary directory and configuration file for the Kaggle API token.
Motivation
The existing cell works only for Google Colab.
Type of change
Feature request
Checklist
git pull --rebase upstream main
).