1st method

you can head into the dataset page and click on new notebook at the top right corner

2nd method

open any notebook and click on add data at the right menue

3rd method

not recommended, since each person that opens the ipynb will have to upload their own token first.

when using colab first download your kaggke json key and do the following steps

  • create a kaggle key, you can go into your settings then head into the account tab and you can find a create new token button in the api section, click on it to download your token.
  • install the kaggle library
! pip install  kaggle
  • upload your kaggle key or you can put the following code to upload the key
from google.colab import files
files.upload()
  • now you can download your dataset using the following code
!kaggle datasets download -d [user/data-name]

in our example here [user/data-name] is kukuroo3/body-performance-data

Answer from hafedh on Stack Overflow
Discussions

Download Kaggle Dataset by using Python - Stack Overflow
I have trying to download the kaggle dataset by using python. However i was facing issues by using the request method and the downloaded output .csv files is a corrupted html files. import request... More on stackoverflow.com
🌐 stackoverflow.com
python 3.x - How to get datasets into kaggle - Stack Overflow
I have two .csv files named as train_data.csv and resources.csv. I want to use these two files on a kaggle kernel. Both of these files are present on my google drive. My question is: How do I get t... More on stackoverflow.com
🌐 stackoverflow.com
Trouble importing kaggle datasets
From skimming through the readme, it looks like kaggle is just a command line utility which you should run from your terminal. It does not look like its meant to be imported. Look at the examples in README. More on reddit.com
🌐 r/Python
3
1
November 2, 2018
python - How to read file from Kaggle in Jupyter Notebook in Microsoft Azure? - Stack Overflow
I am using Jupyter Notebook in Microsoft Azure. Since I cannot upload big files in Azure, I need to read it from a link. The csv file I want to read is in Kaggle. I did this: !pip install kaggle More on stackoverflow.com
🌐 stackoverflow.com
🌐
Buggy Programmer
buggyprogrammer.com › home › how to load kaggle dataset in your colab/jupyter notebook without downloading
How To Load Kaggle Dataset In Your Colab/jupyter Notebook Without Downloading - Buggy Programmer
June 4, 2021 - Now, everything is done, we just need to get the API command for the dataset you want to download. So, for that, you have to open the kaggle and you have to find the dataset you want to work with(Currently, I am using the Netflix dataset for the demonstration purpose) after that click on the three dots which you will find on the right side of the ‘New Notebook’ option, inside there you will see an option called ‘copy API command’, click on that and now you have it.
🌐
Kaggle
kaggle.com › questions-and-answers › 131432
Read a Kaggle Dataset directly in Python with its URL
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › questions-and-answers › 233502
How to access Kaggle Dataset, without Downloading ?
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › getting-started › 52463
How to work with datasets locally ?
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › general › 163392
How can we use kaggle dataset on Google Colab without ...
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
Find elsewhere
🌐
Kaggle
kaggle.com › questions-and-answers › 235984
Accessing kaggle dataset in local (without downloading) ...
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
DataCamp
datacamp.com › tutorial › tutorial-kaggle-datasets-tutorials-kaggle-notebooks
Kaggle Datasets Tutorial: Kaggle Notebooks | DataCamp
March 2, 2022 - Each time you create a Kaggle Notebook, you can edit and run its content in the browser. There is no need to set up your own jupyter notebook environment, just enter Kaggle, create a notebook and start using it on the browser.
🌐
Kaggle
kaggle.com › general › 188677
How to add dataset to notebook ?
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › getting-started › 171502
Kaggle Datasets with Jupyter notebooks
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Stack Overflow
stackoverflow.com › questions › 56602416 › how-to-get-datasets-into-kaggle
python 3.x - How to get datasets into kaggle - Stack Overflow
Kaggle provides 4 options to upload your dataset into a kernel. The 2nd one allows you to use a url. This method cannot be used in submission kernel. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... Domain expertise still wanted: the latest trends in AI-assisted knowledge for... ... I’m Jody, the Chief Product and Technology Officer at Stack Overflow. Let’s... 5 Import Kaggle csv from download url to pandas DataFrame
🌐
Kaggle
kaggle.com › general › 65351
How to download/upload a file produced in the notebook?
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Kaggle
kaggle.com › general › 183512
upload own .ipynb notebook
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds
🌐
Reddit
reddit.com › r/python › trouble importing kaggle datasets
r/Python on Reddit: Trouble importing kaggle datasets
November 2, 2018 -

I am having a little trouble trying to import kaggle datasets. I have installed Anaconda and I have open a Jupyter note book. I run !pip install kaggle --upgrade and I get Requirement already up-to-date: kaggle in c:\users\..... and Requirement already satisfied, skipping upgrade: urllib3<1.23.0,>=1.15 in c:\users... Generally many reports saying that kaggle is installed and up graded. I have also followed the Kaggle API page here https://github.com/Kaggle/kaggle-api where I downloaded the kaggle.json with username / password and put it in the correct file path. My question is what do I do now, running something like import kaggle as kaggle or simply jumping straight into importing the data from kaggle.competitions import twosigmanews I get this error:

--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-1-d4a1406d9f46> in <module>() ----> 1 from kaggle.competitions import twosigmanews ModuleNotFoundError: No module named 'kaggle.competitions'

What are my next steps? what have I missed?

🌐
Kaggle
kaggle.com › general › 51934
Download Kaggle notebook "cells & its output".
Checking your browser before accessing www.kaggle.com · Click here if you are not automatically redirected after 5 seconds