{
  "id": 413361,
  "title": "Can I submit a Jupyter notebook or Python script via the Kaggle API?",
  "url": "/competitions/cafa-5-protein-function-prediction/discussion/413361",
  "author_name": "",
  "post_date": "2023-05-28T09:32:59.359989600Z",
  "votes": 4,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I'm wondering if it's possible to submit a Jupyter notebook or Python script using the Kaggle API. <br>\nFor instance, would the following commands work? </p>\n<p><code>kaggle competitions submit -c cafa-5-protein-function-prediction -f code.ipynb -m \"message\"</code></p>\n<p>or </p>\n<p><code>kaggle competitions submit -c cafa-5-protein-function-prediction -f code.py -m \"message\"</code></p>\n<p>I have tried the commands but received '400 - Bad Request' responses.<br>\nIf there are alternative methods that might be more effective, I would appreciate your suggestions.</p>",
  "messages": [
    {
      "id": "2278050",
      "postDate": "05/28/2023 09:32:59",
      "content": "<p>I'm wondering if it's possible to submit a Jupyter notebook or Python script using the Kaggle API. <br>\nFor instance, would the following commands work? </p>\n<p><code>kaggle competitions submit -c cafa-5-protein-function-prediction -f code.ipynb -m \"message\"</code></p>\n<p>or </p>\n<p><code>kaggle competitions submit -c cafa-5-protein-function-prediction -f code.py -m \"message\"</code></p>\n<p>I have tried the commands but received '400 - Bad Request' responses.<br>\nIf there are alternative methods that might be more effective, I would appreciate your suggestions.</p>",
      "rawMarkdown": "I'm wondering if it's possible to submit a Jupyter notebook or Python script using the Kaggle API. \nFor instance, would the following commands work? \n\n`kaggle competitions submit -c cafa-5-protein-function-prediction -f code.ipynb -m \"message\"`\n\nor \n\n`kaggle competitions submit -c cafa-5-protein-function-prediction -f code.py -m \"message\"`\n\nI have tried the commands but received '400 - Bad Request' responses.\nIf there are alternative methods that might be more effective, I would appreciate your suggestions.",
      "votes": null
    },
    {
      "id": "2285436",
      "postDate": "06/02/2023 17:50:47",
      "content": "<p>I think in this competition you have to run the code on Kaggle jupyter…</p>",
      "rawMarkdown": "I think in this competition you have to run the code on Kaggle jupyter...",
      "votes": null
    },
    {
      "id": "2286913",
      "postDate": "06/04/2023 00:23:04",
      "content": "<p>Thank you for your reply, Abdullah. Well, I hope in the future they will develop an API that I can send a code.</p>",
      "rawMarkdown": "Thank you for your reply, Abdullah. Well, I hope in the future they will develop an API that I can send a code.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2285436,
      "author_name": "dplg007",
      "author_url": "",
      "post_date": "06/02/2023 17:50:47",
      "content": "<p>I think in this competition you have to run the code on Kaggle jupyter…</p>",
      "votes": null,
      "replies": [
        {
          "id": 2286913,
          "author_name": "isakatsuyoshi",
          "author_url": "",
          "post_date": "06/04/2023 00:23:04",
          "content": "<p>Thank you for your reply, Abdullah. Well, I hope in the future they will develop an API that I can send a code.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2278050": "I'm wondering if it's possible to submit a Jupyter notebook or Python script using the Kaggle API. \nFor instance, would the following commands work? \n\n`kaggle competitions submit -c cafa-5-protein-function-prediction -f code.ipynb -m \"message\"`\n\nor \n\n`kaggle competitions submit -c cafa-5-protein-function-prediction -f code.py -m \"message\"`\n\nI have tried the commands but received '400 - Bad Request' responses.\nIf there are alternative methods that might be more effective, I would appreciate your suggestions.",
    "2285436": "I think in this competition you have to run the code on Kaggle jupyter...",
    "2286913": "Thank you for your reply, Abdullah. Well, I hope in the future they will develop an API that I can send a code."
  },
  "source": "meta"
}