{
  "id": 74908,
  "title": "Python Notebook Kernel Keeps dying.",
  "url": "/competitions/elo-merchant-category-recommendation/discussion/74908",
  "author_name": "",
  "post_date": "2018-12-17T07:42:18.792591400Z",
  "votes": null,
  "comment_count": 8,
  "views": 0,
  "content": "<p>My <a href=\"https://www.kaggle.com/sikolia/my-first-jupyter-notebook?scriptVersionId=8486012\">kernel</a> keeps dying for reasons I do not understand. Previous kagglers had raised a smilar issue <a href=\"https://www.kaggle.com/general/38458\">here</a>, <a href=\"https://www.kaggle.com/product-feedback/41221\">here</a>, and <a href=\"https://www.kaggle.com/general/70942\">here</a>. From the previous issues raised kaggle had a problem after updating their version of R, yet I am running a python notebook. I just wanted to make sure I don't have a problem with my code before submititng a product review concern. Thanks in advance.</p>",
  "messages": [
    {
      "id": "440195",
      "postDate": "12/17/2018 07:42:18",
      "content": "<p>My <a href=\"https://www.kaggle.com/sikolia/my-first-jupyter-notebook?scriptVersionId=8486012\">kernel</a> keeps dying for reasons I do not understand. Previous kagglers had raised a smilar issue <a href=\"https://www.kaggle.com/general/38458\">here</a>, <a href=\"https://www.kaggle.com/product-feedback/41221\">here</a>, and <a href=\"https://www.kaggle.com/general/70942\">here</a>. From the previous issues raised kaggle had a problem after updating their version of R, yet I am running a python notebook. I just wanted to make sure I don't have a problem with my code before submititng a product review concern. Thanks in advance.</p>",
      "rawMarkdown": "My [kernel][1] keeps dying for reasons I do not understand. Previous kagglers had raised a smilar issue [here][2], [here][3], and [here][4]. From the previous issues raised kaggle had a problem after updating their version of R, yet I am running a python notebook. I just wanted to make sure I don't have a problem with my code before submititng a product review concern. Thanks in advance.\n\n\n  [1]: https://www.kaggle.com/sikolia/my-first-jupyter-notebook?scriptVersionId=8486012\n  [2]: https://www.kaggle.com/general/38458\n  [3]: https://www.kaggle.com/product-feedback/41221\n  [4]: https://www.kaggle.com/general/70942",
      "votes": null
    },
    {
      "id": "440226",
      "postDate": "12/17/2018 08:53:54",
      "content": "<p>it could be many reasons - one could be memory issue. \nI suggest you to port the code into python script (.py), and run it under ipython command line and see if it runs through</p>",
      "rawMarkdown": "it could be many reasons - one could be memory issue. \nI suggest you to port the code into python script (.py), and run it under ipython command line and see if it runs through",
      "votes": null
    },
    {
      "id": "440343",
      "postDate": "12/17/2018 12:23:47",
      "content": "<p>Thanks, let me try your suggestion and see if it works</p>",
      "rawMarkdown": "Thanks, let me try your suggestion and see if it works",
      "votes": null
    },
    {
      "id": "440464",
      "postDate": "12/17/2018 15:15:28",
      "content": "<p>Thanks Yifan, your suggestion helped me establish why my kernel was dying</p>",
      "rawMarkdown": "Thanks Yifan, your suggestion helped me establish why my kernel was dying",
      "votes": null
    },
    {
      "id": "440526",
      "postDate": "12/17/2018 17:00:29",
      "content": "<p>glad that it helped :) </p>",
      "rawMarkdown": "glad that it helped :)",
      "votes": null
    },
    {
      "id": "440735",
      "postDate": "12/18/2018 00:16:03",
      "content": "<p>I faced same issue in the start and then used memory reduce fuction. It helped a lot. </p>",
      "rawMarkdown": "I faced same issue in the start and then used memory reduce fuction. It helped a lot.",
      "votes": null
    },
    {
      "id": "440920",
      "postDate": "12/18/2018 05:06:14",
      "content": "<p>Thanks K, I too was able to fix the problem</p>",
      "rawMarkdown": "Thanks K, I too was able to fix the problem",
      "votes": null
    },
    {
      "id": "441507",
      "postDate": "12/18/2018 18:07:52",
      "content": "<p>You may also use Garbage Collection (if using a notebook.</p>\n\n<p>import gc\ngc.collect() </p>\n\n<p>This should help!</p>",
      "rawMarkdown": "You may also use Garbage Collection (if using a notebook.\n\nimport gc\ngc.collect() \n\nThis should help!",
      "votes": null
    },
    {
      "id": "441599",
      "postDate": "12/18/2018 20:35:23",
      "content": "<p>Hey , keep track of the ram and cpu utilization in the right side panel and you can check at what cell the kernel is dying when u execute . Hope this helps .</p>",
      "rawMarkdown": "Hey , keep track of the ram and cpu utilization in the right side panel and you can check at what cell the kernel is dying when u execute . Hope this helps .",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 440226,
      "author_name": "yifanxie",
      "author_url": "",
      "post_date": "12/17/2018 08:53:54",
      "content": "<p>it could be many reasons - one could be memory issue. \nI suggest you to port the code into python script (.py), and run it under ipython command line and see if it runs through</p>",
      "votes": null,
      "replies": [
        {
          "id": 440343,
          "author_name": "sikolia",
          "author_url": "",
          "post_date": "12/17/2018 12:23:47",
          "content": "<p>Thanks, let me try your suggestion and see if it works</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 440464,
          "author_name": "sikolia",
          "author_url": "",
          "post_date": "12/17/2018 15:15:28",
          "content": "<p>Thanks Yifan, your suggestion helped me establish why my kernel was dying</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 440526,
          "author_name": "yifanxie",
          "author_url": "",
          "post_date": "12/17/2018 17:00:29",
          "content": "<p>glad that it helped :) </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 440735,
      "author_name": "justk1",
      "author_url": "",
      "post_date": "12/18/2018 00:16:03",
      "content": "<p>I faced same issue in the start and then used memory reduce fuction. It helped a lot. </p>",
      "votes": null,
      "replies": [
        {
          "id": 440920,
          "author_name": "sikolia",
          "author_url": "",
          "post_date": "12/18/2018 05:06:14",
          "content": "<p>Thanks K, I too was able to fix the problem</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 441507,
      "author_name": "roydatascience",
      "author_url": "",
      "post_date": "12/18/2018 18:07:52",
      "content": "<p>You may also use Garbage Collection (if using a notebook.</p>\n\n<p>import gc\ngc.collect() </p>\n\n<p>This should help!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 441599,
      "author_name": "sriharshaatyam",
      "author_url": "",
      "post_date": "12/18/2018 20:35:23",
      "content": "<p>Hey , keep track of the ram and cpu utilization in the right side panel and you can check at what cell the kernel is dying when u execute . Hope this helps .</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "440195": "My [kernel][1] keeps dying for reasons I do not understand. Previous kagglers had raised a smilar issue [here][2], [here][3], and [here][4]. From the previous issues raised kaggle had a problem after updating their version of R, yet I am running a python notebook. I just wanted to make sure I don't have a problem with my code before submititng a product review concern. Thanks in advance.\n\n\n  [1]: https://www.kaggle.com/sikolia/my-first-jupyter-notebook?scriptVersionId=8486012\n  [2]: https://www.kaggle.com/general/38458\n  [3]: https://www.kaggle.com/product-feedback/41221\n  [4]: https://www.kaggle.com/general/70942",
    "440226": "it could be many reasons - one could be memory issue. \nI suggest you to port the code into python script (.py), and run it under ipython command line and see if it runs through",
    "440343": "Thanks, let me try your suggestion and see if it works",
    "440464": "Thanks Yifan, your suggestion helped me establish why my kernel was dying",
    "440526": "glad that it helped :)",
    "440735": "I faced same issue in the start and then used memory reduce fuction. It helped a lot.",
    "440920": "Thanks K, I too was able to fix the problem",
    "441507": "You may also use Garbage Collection (if using a notebook.\n\nimport gc\ngc.collect() \n\nThis should help!",
    "441599": "Hey , keep track of the ram and cpu utilization in the right side panel and you can check at what cell the kernel is dying when u execute . Hope this helps ."
  },
  "source": "meta"
}