Cannot use 'kaggle.competitions' in Kaggle kernel

Viewed 282

I am trying to use a Python module in the remote Kaggle kernel, but when I run, from kaggle.competitions import nflrush, this error appears:

Could not find kaggle.json. Make sure it's located in /root/.kaggle. Or use the environment method.
  • I am using Kaggle Notebooks.
  • The Nlf Rush was a competition in kaggle that ended 2 months ago
  • os.getcwd(), gives me: '/kaggle/working'
  • os.listdir(), gives me: ['.ipynb_checkpoints', '__notebook_source__.ipynb']

But I don't know how to add the credentials kaggle.json in the Kaggle remote kernel. Or is it because the competition is over?

2 Answers
Related