Closed VojtechCermak closed 8 months ago
import json !touch ~/.kaggle/kaggle.json api_token = {“username”:“XXXXX”,“key”:“XXXXXX”} with open(‘/root/.kaggle/kaggle.json’, ‘w’) as file: json.dump(api_token, file) !chmod 600 ~/.kaggle/kaggle.json
There is a description in the documentation with a link to the description at Kaggle.
import json !touch ~/.kaggle/kaggle.json api_token = {“username”:“XXXXX”,“key”:“XXXXXX”} with open(‘/root/.kaggle/kaggle.json’, ‘w’) as file: json.dump(api_token, file) !chmod 600 ~/.kaggle/kaggle.json