Create a ~/.kaggle/kaggle.json file
This is a one-time operation you need to run per kernel
Go and download your kaggle.json file from your kaggle account page and replace YOUR_USERNAME and YOUR_KEY below.
Then run this code in a kaggle python cell
text_file = open("/root/.kaggle/kaggle.json", "w")
n = text_file.write('{"username":"YOUR_USERNAME","key":"YOUR_KEY"}')
text_file.close()