{
  "id": 71012,
  "title": "How to add supporting utils.py for the kernel ?",
  "url": "/competitions/quora-insincere-questions-classification/discussion/71012",
  "author_name": "",
  "post_date": "2018-11-09T09:22:00.991747600Z",
  "votes": null,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi, \nI am trying to write a code in kernel. It needs some custom .py file, to import some functions. But, I have not found a way to upload my .py files . Can anyone suggest me a solution for this. Wring loong supporting function, makes the kernel looks cluumsy.</p>",
  "messages": [
    {
      "id": "418093",
      "postDate": "11/09/2018 09:22:00",
      "content": "<p>Hi, \nI am trying to write a code in kernel. It needs some custom .py file, to import some functions. But, I have not found a way to upload my .py files . Can anyone suggest me a solution for this. Wring loong supporting function, makes the kernel looks cluumsy.</p>",
      "rawMarkdown": "Hi, \nI am trying to write a code in kernel. It needs some custom .py file, to import some functions. But, I have not found a way to upload my .py files . Can anyone suggest me a solution for this. Wring loong supporting function, makes the kernel looks cluumsy.",
      "votes": null
    },
    {
      "id": "418201",
      "postDate": "11/09/2018 13:22:32",
      "content": "<p>You can import custom python package. On your kernel, at the bottom right, their is this option</p>",
      "rawMarkdown": "You can import custom python package. On your kernel, at the bottom right, their is this option",
      "votes": null
    },
    {
      "id": "418205",
      "postDate": "11/09/2018 13:28:03",
      "content": "<p>I have seen it. I was looking for uploading soemthing like utils.py . and in my main code, use it as\n <code>from utils import batch</code>  . It is having option only to upload from a github repo it seems.</p>",
      "rawMarkdown": "I have seen it. I was looking for uploading soemthing like utils.py . and in my main code, use it as\n ```from utils import batch```  . It is having option only to upload from a github repo it seems.",
      "votes": null
    },
    {
      "id": "418208",
      "postDate": "11/09/2018 13:34:24",
      "content": "<p>What you can so is upload .R or .py files as datasets and then import them, if that's what you're looking for. An example here : (<a href=\"https://www.kaggle.com/rtatman/reproducing-research-men-also-like-shopping\">https://www.kaggle.com/rtatman/reproducing-research-men-also-like-shopping</a>)\nSource : <a href=\"https://www.kaggle.com/questions-and-answers/30211\">https://www.kaggle.com/questions-and-answers/30211</a></p>",
      "rawMarkdown": "What you can so is upload .R or .py files as datasets and then import them, if that's what you're looking for. An example here : (https://www.kaggle.com/rtatman/reproducing-research-men-also-like-shopping)\nSource : https://www.kaggle.com/questions-and-answers/30211",
      "votes": null
    },
    {
      "id": "418217",
      "postDate": "11/09/2018 13:46:17",
      "content": "<p>That was nice, I will try it :-) </p>",
      "rawMarkdown": "That was nice, I will try it :-)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 418201,
      "author_name": "xtelima",
      "author_url": "",
      "post_date": "11/09/2018 13:22:32",
      "content": "<p>You can import custom python package. On your kernel, at the bottom right, their is this option</p>",
      "votes": null,
      "replies": [
        {
          "id": 418205,
          "author_name": "s4sarath",
          "author_url": "",
          "post_date": "11/09/2018 13:28:03",
          "content": "<p>I have seen it. I was looking for uploading soemthing like utils.py . and in my main code, use it as\n <code>from utils import batch</code>  . It is having option only to upload from a github repo it seems.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 418208,
          "author_name": "xtelima",
          "author_url": "",
          "post_date": "11/09/2018 13:34:24",
          "content": "<p>What you can so is upload .R or .py files as datasets and then import them, if that's what you're looking for. An example here : (<a href=\"https://www.kaggle.com/rtatman/reproducing-research-men-also-like-shopping\">https://www.kaggle.com/rtatman/reproducing-research-men-also-like-shopping</a>)\nSource : <a href=\"https://www.kaggle.com/questions-and-answers/30211\">https://www.kaggle.com/questions-and-answers/30211</a></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 418217,
          "author_name": "s4sarath",
          "author_url": "",
          "post_date": "11/09/2018 13:46:17",
          "content": "<p>That was nice, I will try it :-) </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "418093": "Hi, \nI am trying to write a code in kernel. It needs some custom .py file, to import some functions. But, I have not found a way to upload my .py files . Can anyone suggest me a solution for this. Wring loong supporting function, makes the kernel looks cluumsy.",
    "418201": "You can import custom python package. On your kernel, at the bottom right, their is this option",
    "418205": "I have seen it. I was looking for uploading soemthing like utils.py . and in my main code, use it as\n ```from utils import batch```  . It is having option only to upload from a github repo it seems.",
    "418208": "What you can so is upload .R or .py files as datasets and then import them, if that's what you're looking for. An example here : (https://www.kaggle.com/rtatman/reproducing-research-men-also-like-shopping)\nSource : https://www.kaggle.com/questions-and-answers/30211",
    "418217": "That was nice, I will try it :-)"
  },
  "source": "meta"
}