There were various articles, but This method worked so I hope it helps someone if I have a memorandum.
Someone (I) who has touched Colab but isn't familiar with Kaggle yet.
--Getting Kaggle's API key --Upload to Colab --Command execution in Colab
Execute the following command.
!mkdir ~/.kaggle
!cp /content/kaggle.json ~/.kaggle/kaggle.json
!chmod 600 ~/.kaggle/kaggle.json
The following is a command to check if the file has been moved. If you hit this and `` `kaggle.json``` comes out, you almost win.
!ls ~/.kaggle
Below is a command to check if it is enabled. If you hit this and a list of various files appears, you win.
!kaggle competitions list
This method that is often introduced is just for uploading kaggle.json anywhere on Google Drive. I'm looking for various things so that it's okay (I felt like), so I said "I should specify the place to upload properly in my heart", so I will adopt the form I wrote here I decided to.
I left it to the momentum and wrote it roughly, so please point out anything!
Recommended Posts