Using the Kaggle datasets outside of Kaggle
Kaggle kernels are free to use, but not without limits (more on that in Chapter 4)—and the first one you are likely to hit is the time limit of 8 hours. A popular alternative is to move to Google Colab a free Jupyter notebook environment that runs entirely in the cloud:
https://colab.research.google.com
But even once we move the computations there, we might still want to have access to the Kaggle datasets—so importing them into Colab is a rather handy feature.
The first thing we do—since you are reading this, we assume you already are registered on Kaggle—is head to the account page to generate the API token:
- Go to “your account” and click on Create New API Token
- A file named
kaggle.json
containing your username and token will be created

Next step is to create a folder named “Kaggle
” in your drive and upload the .json
there

Once done, you need to create a new Colab notebook and...