{
  "id": 154750,
  "title": "Fetching the Dataset in Colab Notebook",
  "url": "/competitions/malware-classification/discussion/154750",
  "author_name": "",
  "post_date": "2020-05-29T16:46:35.977509200Z",
  "votes": 2,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Is there a way to fetch the dataset in a colab notebook? Some datasets have the option \"copy api command\" and using that a dataset could be fetched in a colab notebook. The command looks like:\n<code>!kaggle datasets download -d dataset_address_in_Kaggle</code>\nI tested the command for a dataset with the option \"copy api command\" and it worked okay.\nHowever, I did it for this dataset, although it does not have the \"copy api command\"  and I received a \"not found\" error. I used:\n<code>!kaggle datasets download -d c/malware-classification</code></p>",
  "messages": [
    {
      "id": "866757",
      "postDate": "05/29/2020 16:46:35",
      "content": "<p>Is there a way to fetch the dataset in a colab notebook? Some datasets have the option \"copy api command\" and using that a dataset could be fetched in a colab notebook. The command looks like:\n<code>!kaggle datasets download -d dataset_address_in_Kaggle</code>\nI tested the command for a dataset with the option \"copy api command\" and it worked okay.\nHowever, I did it for this dataset, although it does not have the \"copy api command\"  and I received a \"not found\" error. I used:\n<code>!kaggle datasets download -d c/malware-classification</code></p>",
      "rawMarkdown": "Is there a way to fetch the dataset in a colab notebook? Some datasets have the option \"copy api command\" and using that a dataset could be fetched in a colab notebook. The command looks like:\n`!kaggle datasets download -d dataset_address_in_Kaggle`\nI tested the command for a dataset with the option \"copy api command\" and it worked okay.\nHowever, I did it for this dataset, although it does not have the \"copy api command\"  and I received a \"not found\" error. I used:\n`!kaggle datasets download -d c/malware-classification`",
      "votes": null
    },
    {
      "id": "955878",
      "postDate": "08/03/2020 03:37:04",
      "content": "<p>You might need to download the API key and place them in the <code>~/.kaggle/</code> in colab. If the folder doesnt exist, you need to create it.\nThe following steps will help you to download the dataset.</p>\n\n<p><code>!mkdir ~/.kaggle</code>\n<code>!cp DOWNLOADED_KAGGLE_JSON_PATH ~/.kaggle/kaggle.json</code>\n<code>!kaggle competitions download -c malware-classification</code></p>",
      "rawMarkdown": "You might need to download the API key and place them in the `~/.kaggle/` in colab. If the folder doesnt exist, you need to create it.\nThe following steps will help you to download the dataset.\n\n`!mkdir ~/.kaggle`\n`!cp DOWNLOADED_KAGGLE_JSON_PATH ~/.kaggle/kaggle.json`\n`!kaggle competitions download -c malware-classification`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 955878,
      "author_name": "fysenassar",
      "author_url": "",
      "post_date": "08/03/2020 03:37:04",
      "content": "<p>You might need to download the API key and place them in the <code>~/.kaggle/</code> in colab. If the folder doesnt exist, you need to create it.\nThe following steps will help you to download the dataset.</p>\n\n<p><code>!mkdir ~/.kaggle</code>\n<code>!cp DOWNLOADED_KAGGLE_JSON_PATH ~/.kaggle/kaggle.json</code>\n<code>!kaggle competitions download -c malware-classification</code></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "866757": "Is there a way to fetch the dataset in a colab notebook? Some datasets have the option \"copy api command\" and using that a dataset could be fetched in a colab notebook. The command looks like:\n`!kaggle datasets download -d dataset_address_in_Kaggle`\nI tested the command for a dataset with the option \"copy api command\" and it worked okay.\nHowever, I did it for this dataset, although it does not have the \"copy api command\"  and I received a \"not found\" error. I used:\n`!kaggle datasets download -d c/malware-classification`",
    "955878": "You might need to download the API key and place them in the `~/.kaggle/` in colab. If the folder doesnt exist, you need to create it.\nThe following steps will help you to download the dataset.\n\n`!mkdir ~/.kaggle`\n`!cp DOWNLOADED_KAGGLE_JSON_PATH ~/.kaggle/kaggle.json`\n`!kaggle competitions download -c malware-classification`"
  },
  "source": "meta"
}