{
  "id": 113806,
  "title": "Using Colab for  kaggle competition",
  "url": "/competitions/ashrae-energy-prediction/discussion/113806",
  "author_name": "",
  "post_date": "2019-10-22T10:35:07.873156700Z",
  "votes": 4,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Step1:\n! pip install -q kaggle</p>\n\n<p>Step 2: \nfrom google.colab import files</p>\n\n<p>files.upload()</p>\n\n<p>Upload JSON file -&gt; create new token from kaggle-&gt;my profile .Note- Don't forget to expire old tokens before creating new</p>\n\n<p>Step3:\n! mkdir ~/.kaggle</p>\n\n<p>! cp kaggle.json ~/.kaggle/</p>\n\n<p>Step4:\n! chmod 600 ~/.kaggle/kaggle.json\nStep5:</p>\n\n<h2>link can be found under data section</h2>\n\n<p>!kaggle competitions download -c ashrae-energy-prediction</p>\n\n<p>Step6:\n!unzip weather_test.csv.zip\n!unzip test.csv.zip\n!unzip weather_train.csv.zip\n!unzip train.csv.zip\n!unzip sample_submission.csv.zip\nThats it!!! </p>",
  "messages": [
    {
      "id": "654800",
      "postDate": "10/22/2019 10:35:07",
      "content": "<p>Step1:\n! pip install -q kaggle</p>\n\n<p>Step 2: \nfrom google.colab import files</p>\n\n<p>files.upload()</p>\n\n<p>Upload JSON file -&gt; create new token from kaggle-&gt;my profile .Note- Don't forget to expire old tokens before creating new</p>\n\n<p>Step3:\n! mkdir ~/.kaggle</p>\n\n<p>! cp kaggle.json ~/.kaggle/</p>\n\n<p>Step4:\n! chmod 600 ~/.kaggle/kaggle.json\nStep5:</p>\n\n<h2>link can be found under data section</h2>\n\n<p>!kaggle competitions download -c ashrae-energy-prediction</p>\n\n<p>Step6:\n!unzip weather_test.csv.zip\n!unzip test.csv.zip\n!unzip weather_train.csv.zip\n!unzip train.csv.zip\n!unzip sample_submission.csv.zip\nThats it!!! </p>",
      "rawMarkdown": "Step1:\n! pip install -q kaggle\n\nStep 2: \nfrom google.colab import files\n\nfiles.upload()\n\nUpload JSON file -&gt; create new token from kaggle-&gt;my profile .Note- Don't forget to expire old tokens before creating new\n\nStep3:\n! mkdir ~/.kaggle\n\n! cp kaggle.json ~/.kaggle/\n\nStep4:\n! chmod 600 ~/.kaggle/kaggle.json\nStep5:\n##link can be found under data section\n!kaggle competitions download -c ashrae-energy-prediction\n\nStep6:\n!unzip weather_test.csv.zip\n!unzip test.csv.zip\n!unzip weather_train.csv.zip\n!unzip train.csv.zip\n!unzip sample_submission.csv.zip\nThats it!!!",
      "votes": null
    },
    {
      "id": "655269",
      "postDate": "10/22/2019 21:31:04",
      "content": "<p>In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\nThen, with just 1 cell you are ready to go:</p>\n\n<p><code>\nfrom google.colab import drive\ndrive.mount('/content/gdrive')\n</code></p>",
      "rawMarkdown": "In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\nThen, with just 1 cell you are ready to go:\n\n```\nfrom google.colab import drive\ndrive.mount('/content/gdrive')\n```",
      "votes": null
    },
    {
      "id": "655550",
      "postDate": "10/23/2019 07:00:35",
      "content": "<p>Thanks for the advice .</p>\n\n<blockquote>\n  <p><strong>Federico Raimondi wrote:</strong></p>\n  \n  <p>In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\n  Then, with just 1 cell you are ready to go:</p>\n  \n  <p><code>\n  from google.colab import drive\n  drive.mount('/content/gdrive')\n  </code></p>\n</blockquote>",
      "rawMarkdown": "Thanks for the advice .\n&gt; **Federico Raimondi wrote:**\n&gt; \n&gt; In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\n&gt; Then, with just 1 cell you are ready to go:\n&gt; \n&gt; ```\n&gt; from google.colab import drive\n&gt; drive.mount('/content/gdrive')\n&gt; ```",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 655269,
      "author_name": "raimonds1993",
      "author_url": "",
      "post_date": "10/22/2019 21:31:04",
      "content": "<p>In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\nThen, with just 1 cell you are ready to go:</p>\n\n<p><code>\nfrom google.colab import drive\ndrive.mount('/content/gdrive')\n</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 655550,
          "author_name": "abhi891",
          "author_url": "",
          "post_date": "10/23/2019 07:00:35",
          "content": "<p>Thanks for the advice .</p>\n\n<blockquote>\n  <p><strong>Federico Raimondi wrote:</strong></p>\n  \n  <p>In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\n  Then, with just 1 cell you are ready to go:</p>\n  \n  <p><code>\n  from google.colab import drive\n  drive.mount('/content/gdrive')\n  </code></p>\n</blockquote>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "654800": "Step1:\n! pip install -q kaggle\n\nStep 2: \nfrom google.colab import files\n\nfiles.upload()\n\nUpload JSON file -&gt; create new token from kaggle-&gt;my profile .Note- Don't forget to expire old tokens before creating new\n\nStep3:\n! mkdir ~/.kaggle\n\n! cp kaggle.json ~/.kaggle/\n\nStep4:\n! chmod 600 ~/.kaggle/kaggle.json\nStep5:\n##link can be found under data section\n!kaggle competitions download -c ashrae-energy-prediction\n\nStep6:\n!unzip weather_test.csv.zip\n!unzip test.csv.zip\n!unzip weather_train.csv.zip\n!unzip train.csv.zip\n!unzip sample_submission.csv.zip\nThats it!!!",
    "655269": "In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\nThen, with just 1 cell you are ready to go:\n\n```\nfrom google.colab import drive\ndrive.mount('/content/gdrive')\n```",
    "655550": "Thanks for the advice .\n&gt; **Federico Raimondi wrote:**\n&gt; \n&gt; In competitions like this one where data have a reasonable size, I prefer to upload everything on my G Drive.\n&gt; Then, with just 1 cell you are ready to go:\n&gt; \n&gt; ```\n&gt; from google.colab import drive\n&gt; drive.mount('/content/gdrive')\n&gt; ```"
  },
  "source": "meta"
}