{
  "id": 62287,
  "title": "How to import a python file in Kaggle IPython notebook ",
  "url": "/competitions/google-ai-open-images-object-detection-track/discussion/62287",
  "author_name": "Shubham Tiwari",
  "post_date": "2018-07-30T21:43:36.866000",
  "votes": 0,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I am facing problem while I am importing one python file in Kaggle IPython Notebook that I uploaded using kaggle api.\nfile xyz.py is in folder object_detection, when I am importing it in notebook like </p>\n\n<p>from object_detection import xyz</p>\n\n<p>I am getting error ModuleNotFoundError: No module named 'object_detection'</p>\n\n<p>What to do please help?</p>",
  "messages": [
    {
      "id": 364158,
      "postDate": "2018-07-30T22:20:40.993Z",
      "content": "<p>I think it depends on the directory that the file is located in - it is easy to be confused.</p>\n\n<p>Maybe the <a href=\"https://stackoverflow.com/questions/46493861/unable-to-import-python-file-from-different-directory\">link</a> will be of some help?</p>",
      "rawMarkdown": "I think it depends on the directory that the file is located in - it is easy to be confused.\n\nMaybe the [link][1] will be of some help?\n\n\n  [1]: https://stackoverflow.com/questions/46493861/unable-to-import-python-file-from-different-directory"
    },
    {
      "id": 364151,
      "postDate": "2018-07-30T21:43:36.867Z",
      "content": "<p>I am facing problem while I am importing one python file in Kaggle IPython Notebook that I uploaded using kaggle api.\nfile xyz.py is in folder object_detection, when I am importing it in notebook like </p>\n\n<p>from object_detection import xyz</p>\n\n<p>I am getting error ModuleNotFoundError: No module named 'object_detection'</p>\n\n<p>What to do please help?</p>",
      "rawMarkdown": "I am facing problem while I am importing one python file in Kaggle IPython Notebook that I uploaded using kaggle api.\nfile xyz.py is in folder object_detection, when I am importing it in notebook like \n\nfrom object_detection import xyz\n\nI am getting error ModuleNotFoundError: No module named 'object_detection'\n\nWhat to do please help?\n"
    },
    {
      "id": 369486,
      "postDate": "2018-08-13T06:58:33.453Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 364158,
      "author_name": "Adams",
      "author_url": "",
      "post_date": "2018-07-30T22:20:40.993000",
      "content": "<p>I think it depends on the directory that the file is located in - it is easy to be confused.</p>\n\n<p>Maybe the <a href=\"https://stackoverflow.com/questions/46493861/unable-to-import-python-file-from-different-directory\">link</a> will be of some help?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 369486,
      "author_name": "",
      "author_url": "",
      "post_date": "2018-08-13T06:58:33.453000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "364158": "I think it depends on the directory that the file is located in - it is easy to be confused.\n\nMaybe the [link][1] will be of some help?\n\n\n  [1]: https://stackoverflow.com/questions/46493861/unable-to-import-python-file-from-different-directory",
    "364151": "I am facing problem while I am importing one python file in Kaggle IPython Notebook that I uploaded using kaggle api.\nfile xyz.py is in folder object_detection, when I am importing it in notebook like \n\nfrom object_detection import xyz\n\nI am getting error ModuleNotFoundError: No module named 'object_detection'\n\nWhat to do please help?\n",
    "369486": ""
  }
}