google / generative-ai-docs

Documentation for Google's Gen AI site - including the Gemini API and Gemma
https://ai.google.dev
Apache License 2.0
1.46k stars 494 forks source link

Setting Kaggle Credentials #464

Open ayyucedemirbas opened 2 weeks ago

ayyucedemirbas commented 2 weeks ago

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

review-notebook-app[bot] commented 2 weeks ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB