{
  "id": 310010,
  "title": "Failed to use Kaggle API to download the datasets to my Colab",
  "url": "/competitions/happy-whale-and-dolphin/discussion/310010",
  "author_name": "",
  "post_date": "2022-02-27T05:18:38.118723900Z",
  "votes": 6,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I know the files are a few G size. I tried to download the files to my colab. It only succeeds to download parts of the dataset.</p>\n<p>Code I tried.</p>\n<pre><code>! mkdir ~/.kaggle\n! cp kaggle.json ~/.kaggle/\n! chmod 600 ~/.kaggle/kaggle.json #allocate the required permission for this file\n! kaggle competitions download happy-whale-and-dolphin\n! kaggle competitions download -c happy-whale-and-dolphin -p ./train_images\n</code></pre>\n<p>Did anyone have this same problem?</p>",
  "messages": [
    {
      "id": "1706026",
      "postDate": "02/27/2022 05:18:38",
      "content": "<p>I know the files are a few G size. I tried to download the files to my colab. It only succeeds to download parts of the dataset.</p>\n<p>Code I tried.</p>\n<pre><code>! mkdir ~/.kaggle\n! cp kaggle.json ~/.kaggle/\n! chmod 600 ~/.kaggle/kaggle.json #allocate the required permission for this file\n! kaggle competitions download happy-whale-and-dolphin\n! kaggle competitions download -c happy-whale-and-dolphin -p ./train_images\n</code></pre>\n<p>Did anyone have this same problem?</p>",
      "rawMarkdown": "I know the files are a few G size. I tried to download the files to my colab. It only succeeds to download parts of the dataset.\n\nCode I tried.\n```\n! mkdir ~/.kaggle\n! cp kaggle.json ~/.kaggle/\n! chmod 600 ~/.kaggle/kaggle.json #allocate the required permission for this file\n! kaggle competitions download happy-whale-and-dolphin\n! kaggle competitions download -c happy-whale-and-dolphin -p ./train_images\n```\nDid anyone have this same problem?",
      "votes": null
    },
    {
      "id": "1706092",
      "postDate": "02/27/2022 07:05:49",
      "content": "<p>Have you tried <code>!pip install --upgrade --force-reinstall --no-deps kaggle</code>?</p>",
      "rawMarkdown": "Have you tried `!pip install --upgrade --force-reinstall --no-deps kaggle`?",
      "votes": null
    },
    {
      "id": "1708402",
      "postDate": "03/01/2022 12:37:53",
      "content": "<p>It worked! Thank you 🤝</p>",
      "rawMarkdown": "It worked! Thank you 🤝",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1706092,
      "author_name": "hwigeon",
      "author_url": "",
      "post_date": "02/27/2022 07:05:49",
      "content": "<p>Have you tried <code>!pip install --upgrade --force-reinstall --no-deps kaggle</code>?</p>",
      "votes": null,
      "replies": [
        {
          "id": 1708402,
          "author_name": "kailichou",
          "author_url": "",
          "post_date": "03/01/2022 12:37:53",
          "content": "<p>It worked! Thank you 🤝</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1706026": "I know the files are a few G size. I tried to download the files to my colab. It only succeeds to download parts of the dataset.\n\nCode I tried.\n```\n! mkdir ~/.kaggle\n! cp kaggle.json ~/.kaggle/\n! chmod 600 ~/.kaggle/kaggle.json #allocate the required permission for this file\n! kaggle competitions download happy-whale-and-dolphin\n! kaggle competitions download -c happy-whale-and-dolphin -p ./train_images\n```\nDid anyone have this same problem?",
    "1706092": "Have you tried `!pip install --upgrade --force-reinstall --no-deps kaggle`?",
    "1708402": "It worked! Thank you 🤝"
  },
  "source": "meta"
}