{
  "id": 598802,
  "title": "Submission Failed",
  "url": "/competitions/cmi-detect-behavior-with-sensor-data/discussion/598802",
  "author_name": "",
  "post_date": "2025-08-12T20:16:59.749782400Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hello, has anybody had this error in their submission?</p>\n<p>43.1s    36    warn(<br>\n43.2s    37  [NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to html<br>\n44.0s    38  Traceback (most recent call last):<br>\n44.0s    39    File \"/usr/local/bin/jupyter-nbconvert\", line 10, in <br>\n44.0s    40      sys.exit(main())<br>\n44.0s    41               ^^^^^^<br>\n…. ….</p>\n<p>44.0s    130     metadata['widgets'][WIDGET_STATE_MIMETYPE]['state'] if<br>\n44.0s    131     ~~^^^^^^^^^<br>\n44.0s    132 KeyError: 'state'</p>\n<p>Please help me.</p>",
  "messages": [
    {
      "id": "3268391",
      "postDate": "08/12/2025 20:16:59",
      "content": "<p>Hello, has anybody had this error in their submission?</p>\n<p>43.1s    36    warn(<br>\n43.2s    37  [NbConvertApp] Converting notebook <strong>notebook</strong>.ipynb to html<br>\n44.0s    38  Traceback (most recent call last):<br>\n44.0s    39    File \"/usr/local/bin/jupyter-nbconvert\", line 10, in <br>\n44.0s    40      sys.exit(main())<br>\n44.0s    41               ^^^^^^<br>\n…. ….</p>\n<p>44.0s    130     metadata['widgets'][WIDGET_STATE_MIMETYPE]['state'] if<br>\n44.0s    131     ~~^^^^^^^^^<br>\n44.0s    132 KeyError: 'state'</p>\n<p>Please help me.</p>",
      "rawMarkdown": "Hello, has anybody had this error in their submission?\n\n43.1s\t36\t  warn(\n43.2s\t37\t[NbConvertApp] Converting notebook __notebook__.ipynb to html\n44.0s\t38\tTraceback (most recent call last):\n44.0s\t39\t  File \"/usr/local/bin/jupyter-nbconvert\", line 10, in <module>\n44.0s\t40\t    sys.exit(main())\n44.0s\t41\t             ^^^^^^\n.... ....\n\n44.0s\t130\t    metadata['widgets'][WIDGET_STATE_MIMETYPE]['state'] if\n44.0s\t131\t    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n44.0s\t132\tKeyError: 'state'\n\nPlease help me.",
      "votes": null
    },
    {
      "id": "3268538",
      "postDate": "08/13/2025 05:26:06",
      "content": "<p>Hi, You can try the following quick workaround:</p>\n<ul>\n<li><p>Make sure your notebook does not produce any interactive outputs — avoid using ipywidgets, comment out any widget display code, and remove calls like <code>display(widget).</code></p></li>\n<li><p>Before submitting, clear all outputs, re-run all cells, and then submit. (In Kaggle: “Clear All Outputs” → “Run All” → Submit.)</p></li>\n</ul>\n<p>This usually prevents the <code>KeyError: 'state'</code> issue during nbconvert.</p>",
      "rawMarkdown": "Hi, You can try the following quick workaround:\n\n- Make sure your notebook does not produce any interactive outputs — avoid using ipywidgets, comment out any widget display code, and remove calls like `display(widget).`\n\n- Before submitting, clear all outputs, re-run all cells, and then submit. (In Kaggle: “Clear All Outputs” → “Run All” → Submit.)\n\nThis usually prevents the `KeyError: 'state'` issue during nbconvert.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3268538,
      "author_name": "harutokotou",
      "author_url": "",
      "post_date": "08/13/2025 05:26:06",
      "content": "<p>Hi, You can try the following quick workaround:</p>\n<ul>\n<li><p>Make sure your notebook does not produce any interactive outputs — avoid using ipywidgets, comment out any widget display code, and remove calls like <code>display(widget).</code></p></li>\n<li><p>Before submitting, clear all outputs, re-run all cells, and then submit. (In Kaggle: “Clear All Outputs” → “Run All” → Submit.)</p></li>\n</ul>\n<p>This usually prevents the <code>KeyError: 'state'</code> issue during nbconvert.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3268391": "Hello, has anybody had this error in their submission?\n\n43.1s\t36\t  warn(\n43.2s\t37\t[NbConvertApp] Converting notebook __notebook__.ipynb to html\n44.0s\t38\tTraceback (most recent call last):\n44.0s\t39\t  File \"/usr/local/bin/jupyter-nbconvert\", line 10, in <module>\n44.0s\t40\t    sys.exit(main())\n44.0s\t41\t             ^^^^^^\n.... ....\n\n44.0s\t130\t    metadata['widgets'][WIDGET_STATE_MIMETYPE]['state'] if\n44.0s\t131\t    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^\n44.0s\t132\tKeyError: 'state'\n\nPlease help me.",
    "3268538": "Hi, You can try the following quick workaround:\n\n- Make sure your notebook does not produce any interactive outputs — avoid using ipywidgets, comment out any widget display code, and remove calls like `display(widget).`\n\n- Before submitting, clear all outputs, re-run all cells, and then submit. (In Kaggle: “Clear All Outputs” → “Run All” → Submit.)\n\nThis usually prevents the `KeyError: 'state'` issue during nbconvert."
  },
  "source": "meta"
}