{
  "id": 131554,
  "title": "Notebooks with tqdm progress bar gives error when committed.",
  "url": "/competitions/bengaliai-cv19/discussion/131554",
  "author_name": "",
  "post_date": "2020-02-20T11:26:16.597857600Z",
  "votes": 4,
  "comment_count": 8,
  "views": 0,
  "content": "<p>I have a few notebooks having tqdm progress bar which fails with the following log when committed:</p>\n\n<p><code>\n--- Logging error ---\n53.97\n4\nTraceback (most recent call last):\n53.97\n5\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 318, in _preprocess\n53.97\n6\nnbformat.validate(nbc, relax_add_props=True)\n53.97\n7\nFile \"/opt/conda/lib/python3.6/site-packages/nbformat/validator.py\", line 277, in validate\n53.97\n8\nraise error\n53.97\n9\nnbformat.validator.NotebookValidationError: {'version_major': 2, 'version_minor': 0, 'model_id': 'b60454725dc84429bfc40f191073dbf5'} is not valid under any of the given schemas\n53.97\n10\n53.97\n11\nFailed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\\\-\\\\+\\\\.]+$']:\n53.97\n12\n53.97\n13\nOn instance['cells'][22]['outputs'][0]['data']['application/vnd.jupyter.widget-view+json']:\n53.97\n14\n{'model_id': 'b60454725dc84429bfc40f191073dbf5',\n53.97\n15\n'version_major': 2,\n53.97\n16\n'version_minor': 0}\n53.97\n17\n53.97\n18\nDuring handling of the above exception, another exception occurred:\n53.97\n19\n53.97\n20\nTraceback (most recent call last):\n53.97\n21\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 993, in emit\n53.97\n22\nmsg = self.format(record)\n53.97\n23\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 839, in format\n53.97\n24\nreturn fmt.format(record)\n53.97\n25\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 117, in format\n53.97\n26\nreturn super(LevelFormatter, self).format(record)\n53.97\n27\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 576, in format\n53.97\n28\nrecord.message = record.getMessage()\n53.97\n29\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 338, in getMessage\n53.97\n30\nmsg = msg % self.args\n53.97\n31\nTypeError: not all arguments converted during string formatting\n53.97\n32\nCall stack:\n53.97\n33\nFile \"/opt/conda/bin/jupyter-nbconvert\", line 11, in &lt;module&gt;\n53.97\n34\nsys.exit(main())\n53.97\n35\nFile \"/opt/conda/lib/python3.6/site-packages/jupyter_core/application.py\", line 268, in launch_instance\n53.97\n36\nreturn super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\n53.97\n37\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 664, in launch_instance\n53.97\n38\napp.start()\n53.97\n39\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 340, in start\n53.97\n40\nself.convert_notebooks()\n53.97\n41\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 510, in convert_notebooks\n53.97\n42\nself.convert_single_notebook(notebook_filename)\n53.97\n43\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 481, in convert_single_notebook\n53.97\n44\noutput, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)\n53.97\n45\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 410, in export_single_notebook\n53.97\n46\noutput, resources = self.exporter.from_filename(notebook_filename, resources=resources)\n53.97\n47\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 179, in from_filename\n53.97\n48\nreturn self.from_file(f, resources=resources, **kw)\n53.97\n49\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 197, in from_file\n53.97\n50\nreturn self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)\n53.97\n51\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/notebook.py\", line 32, in from_notebook_node\n53.97\n52\nnb_copy, resources = super(NotebookExporter, self).from_notebook_node(nb, resources, **kw)\n53.97\n53\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 139, in from_notebook_node\n53.97\n54\nnb_copy, resources = self._preprocess(nb_copy, resources)\n53.97\n55\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 321, in _preprocess\n53.97\n56\npreprocessor)\n53.97\n57\nMessage: 'Notebook is invalid after preprocessor {}'\n53.97\n58\nArguments: (&lt;nbconvert.preprocessors.execute.ExecutePreprocessor object at 0x7fe15ca906d8&gt;,)\n53.97\n59\nTraceback (most recent call last):\n53.97\n60\nFile \"/opt/conda/bin/jupyter-nbconvert\", line 11, in &lt;module&gt;\n53.97\n61\nsys.exit(main())\n53.97\n62\nFile \"/opt/conda/lib/python3.6/site-packages/jupyter_core/application.py\", line 268, in launch_instance\n53.97\n63\nreturn super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\n53.97\n64\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 664, in launch_instance\n53.97\n65\napp.start()\n53.97\n66\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 340, in start\n53.97\n67\nself.convert_notebooks()\n53.97\n68\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 510, in convert_notebooks\n53.97\n69\nself.convert_single_notebook(notebook_filename)\n53.97\n70\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 481, in convert_single_notebook\n53.97\n71\noutput, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)\n53.97\n72\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 410, in export_single_notebook\n53.97\n73\noutput, resources = self.exporter.from_filename(notebook_filename, resources=resources)\n53.97\n74\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 179, in from_filename\n53.97\n75\nreturn self.from_file(f, resources=resources, **kw)\n53.97\n76\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 197, in from_file\n53.97\n77\nreturn self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)\n53.97\n78\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/notebook.py\", line 32, in from_notebook_node\n53.97\n79\nnb_copy, resources = super(NotebookExporter, self).from_notebook_node(nb, resources, **kw)\n53.97\n80\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 139, in from_notebook_node\n53.97\n81\nnb_copy, resources = self._preprocess(nb_copy, resources)\n53.97\n82\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 318, in _preprocess\n53.97\n83\nnbformat.validate(nbc, relax_add_props=True)\n53.97\n84\nFile \"/opt/conda/lib/python3.6/site-packages/nbformat/validator.py\", line 277, in validate\n53.97\n85\nraise error\n53.97\n86\nnbformat.validator.NotebookValidationError: {'version_major': 2, 'version_minor': 0, 'model_id': 'b60454725dc84429bfc40f191073dbf5'} is not valid under any of the given schemas\n53.97\n87\n53.97\n88\nFailed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\\\-\\\\+\\\\.]+$']:\n53.97\n89\n53.97\n90\nOn instance['cells'][22]['outputs'][0]['data']['application/vnd.jupyter.widget-view+json']:\n53.97\n91\n{'model_id': 'b60454725dc84429bfc40f191073dbf5',\n53.97\n92\n'version_major': 2,\n53.97\n93\n'version_minor': 0}\n54.68\n94\n[NbConvertApp] Converting notebook __notebook__.ipynb to html\n55.44\n95\n[NbConvertApp] Writing 347832 bytes to __results__.html\nV\n</code>\nHow ever others works well. Any specific reason? </p>\n\n<p>Thanks!</p>",
  "messages": [
    {
      "id": "751656",
      "postDate": "02/20/2020 11:26:16",
      "content": "<p>I have a few notebooks having tqdm progress bar which fails with the following log when committed:</p>\n\n<p><code>\n--- Logging error ---\n53.97\n4\nTraceback (most recent call last):\n53.97\n5\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 318, in _preprocess\n53.97\n6\nnbformat.validate(nbc, relax_add_props=True)\n53.97\n7\nFile \"/opt/conda/lib/python3.6/site-packages/nbformat/validator.py\", line 277, in validate\n53.97\n8\nraise error\n53.97\n9\nnbformat.validator.NotebookValidationError: {'version_major': 2, 'version_minor': 0, 'model_id': 'b60454725dc84429bfc40f191073dbf5'} is not valid under any of the given schemas\n53.97\n10\n53.97\n11\nFailed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\\\-\\\\+\\\\.]+$']:\n53.97\n12\n53.97\n13\nOn instance['cells'][22]['outputs'][0]['data']['application/vnd.jupyter.widget-view+json']:\n53.97\n14\n{'model_id': 'b60454725dc84429bfc40f191073dbf5',\n53.97\n15\n'version_major': 2,\n53.97\n16\n'version_minor': 0}\n53.97\n17\n53.97\n18\nDuring handling of the above exception, another exception occurred:\n53.97\n19\n53.97\n20\nTraceback (most recent call last):\n53.97\n21\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 993, in emit\n53.97\n22\nmsg = self.format(record)\n53.97\n23\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 839, in format\n53.97\n24\nreturn fmt.format(record)\n53.97\n25\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 117, in format\n53.97\n26\nreturn super(LevelFormatter, self).format(record)\n53.97\n27\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 576, in format\n53.97\n28\nrecord.message = record.getMessage()\n53.97\n29\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 338, in getMessage\n53.97\n30\nmsg = msg % self.args\n53.97\n31\nTypeError: not all arguments converted during string formatting\n53.97\n32\nCall stack:\n53.97\n33\nFile \"/opt/conda/bin/jupyter-nbconvert\", line 11, in &lt;module&gt;\n53.97\n34\nsys.exit(main())\n53.97\n35\nFile \"/opt/conda/lib/python3.6/site-packages/jupyter_core/application.py\", line 268, in launch_instance\n53.97\n36\nreturn super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\n53.97\n37\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 664, in launch_instance\n53.97\n38\napp.start()\n53.97\n39\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 340, in start\n53.97\n40\nself.convert_notebooks()\n53.97\n41\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 510, in convert_notebooks\n53.97\n42\nself.convert_single_notebook(notebook_filename)\n53.97\n43\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 481, in convert_single_notebook\n53.97\n44\noutput, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)\n53.97\n45\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 410, in export_single_notebook\n53.97\n46\noutput, resources = self.exporter.from_filename(notebook_filename, resources=resources)\n53.97\n47\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 179, in from_filename\n53.97\n48\nreturn self.from_file(f, resources=resources, **kw)\n53.97\n49\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 197, in from_file\n53.97\n50\nreturn self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)\n53.97\n51\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/notebook.py\", line 32, in from_notebook_node\n53.97\n52\nnb_copy, resources = super(NotebookExporter, self).from_notebook_node(nb, resources, **kw)\n53.97\n53\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 139, in from_notebook_node\n53.97\n54\nnb_copy, resources = self._preprocess(nb_copy, resources)\n53.97\n55\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 321, in _preprocess\n53.97\n56\npreprocessor)\n53.97\n57\nMessage: 'Notebook is invalid after preprocessor {}'\n53.97\n58\nArguments: (&lt;nbconvert.preprocessors.execute.ExecutePreprocessor object at 0x7fe15ca906d8&gt;,)\n53.97\n59\nTraceback (most recent call last):\n53.97\n60\nFile \"/opt/conda/bin/jupyter-nbconvert\", line 11, in &lt;module&gt;\n53.97\n61\nsys.exit(main())\n53.97\n62\nFile \"/opt/conda/lib/python3.6/site-packages/jupyter_core/application.py\", line 268, in launch_instance\n53.97\n63\nreturn super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\n53.97\n64\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 664, in launch_instance\n53.97\n65\napp.start()\n53.97\n66\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 340, in start\n53.97\n67\nself.convert_notebooks()\n53.97\n68\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 510, in convert_notebooks\n53.97\n69\nself.convert_single_notebook(notebook_filename)\n53.97\n70\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 481, in convert_single_notebook\n53.97\n71\noutput, resources = self.export_single_notebook(notebook_filename, resources, input_buffer=input_buffer)\n53.97\n72\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/nbconvertapp.py\", line 410, in export_single_notebook\n53.97\n73\noutput, resources = self.exporter.from_filename(notebook_filename, resources=resources)\n53.97\n74\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 179, in from_filename\n53.97\n75\nreturn self.from_file(f, resources=resources, **kw)\n53.97\n76\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 197, in from_file\n53.97\n77\nreturn self.from_notebook_node(nbformat.read(file_stream, as_version=4), resources=resources, **kw)\n53.97\n78\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/notebook.py\", line 32, in from_notebook_node\n53.97\n79\nnb_copy, resources = super(NotebookExporter, self).from_notebook_node(nb, resources, **kw)\n53.97\n80\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 139, in from_notebook_node\n53.97\n81\nnb_copy, resources = self._preprocess(nb_copy, resources)\n53.97\n82\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 318, in _preprocess\n53.97\n83\nnbformat.validate(nbc, relax_add_props=True)\n53.97\n84\nFile \"/opt/conda/lib/python3.6/site-packages/nbformat/validator.py\", line 277, in validate\n53.97\n85\nraise error\n53.97\n86\nnbformat.validator.NotebookValidationError: {'version_major': 2, 'version_minor': 0, 'model_id': 'b60454725dc84429bfc40f191073dbf5'} is not valid under any of the given schemas\n53.97\n87\n53.97\n88\nFailed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\\\-\\\\+\\\\.]+$']:\n53.97\n89\n53.97\n90\nOn instance['cells'][22]['outputs'][0]['data']['application/vnd.jupyter.widget-view+json']:\n53.97\n91\n{'model_id': 'b60454725dc84429bfc40f191073dbf5',\n53.97\n92\n'version_major': 2,\n53.97\n93\n'version_minor': 0}\n54.68\n94\n[NbConvertApp] Converting notebook __notebook__.ipynb to html\n55.44\n95\n[NbConvertApp] Writing 347832 bytes to __results__.html\nV\n</code>\nHow ever others works well. Any specific reason? </p>\n\n<p>Thanks!</p>",
      "rawMarkdown": "I have a few notebooks having tqdm progress bar which fails with the following log when committed:\n\n```\n--- Logging error ---\n53.97\n4\nTraceback (most recent call last):\n53.97\n5\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 318, in _preprocess\n53.97\n6\nnbformat.validate(nbc, relax_add_props=True)\n53.97\n7\nFile \"/opt/conda/lib/python3.6/site-packages/nbformat/validator.py\", line 277, in validate\n53.97\n8\nraise error\n53.97\n9\nnbformat.validator.NotebookValidationError: {'version_major': 2, 'version_minor': 0, 'model_id': 'b60454725dc84429bfc40f191073dbf5'} is not valid under any of the given schemas\n53.97\n10\n53.97\n11\nFailed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\\\-\\\\+\\\\.]+$']:\n53.97\n12\n53.97\n13\nOn instance['cells'][22]['outputs'][0]['data']['application/vnd.jupyter.widget-view+json']:\n53.97\n14\n{'model_id': 'b60454725dc84429bfc40f191073dbf5',\n53.97\n15\n'version_major': 2,\n53.97\n16\n'version_minor': 0}\n53.97\n17\n53.97\n18\nDuring handling of the above exception, another exception occurred:\n53.97\n19\n53.97\n20\nTraceback (most recent call last):\n53.97\n21\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 993, in emit\n53.97\n22\nmsg = self.format(record)\n53.97\n23\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 839, in format\n53.97\n24\nreturn fmt.format(record)\n53.97\n25\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 117, in format\n53.97\n26\nreturn super(LevelFormatter, self).format(record)\n53.97\n27\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 576, in format\n53.97\n28\nrecord.message = record.getMessage()\n53.97\n29\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 338, in getMessage\n53.97\n30\nmsg = msg % self.args\n53.97\n31\nTypeError: not all arguments converted during string formatting\n53.97\n32\nCall stack:\n53.97\n33\nFile \"/opt/conda/bin/jupyter-nbconvert\", line 11, in",
      "votes": null
    },
    {
      "id": "751662",
      "postDate": "02/20/2020 11:33:59",
      "content": "<p>Better use it only when testing things. When you want to commit the notebook, get rid of tqdm. It is because of the widgets, tqdm produces.</p>\n\n<p><a href=\"/yosshi999\">@yosshi999</a> mentioned that he was able to get rid of it by using tqdm instead of tqdm_notebook. You can find the discussion <a href=\"https://www.kaggle.com/c/bengaliai-cv19/discussion/130911\">here</a></p>",
      "rawMarkdown": "Better use it only when testing things. When you want to commit the notebook, get rid of tqdm. It is because of the widgets, tqdm produces.\n\n@yosshi999 mentioned that he was able to get rid of it by using tqdm instead of tqdm_notebook. You can find the discussion [here](https://www.kaggle.com/c/bengaliai-cv19/discussion/130911)",
      "votes": null
    },
    {
      "id": "751788",
      "postDate": "02/20/2020 14:13:16",
      "content": "<p>The same error! When using '(pretrained=True)' in pytorch. Maybe it uses tqdm.</p>",
      "rawMarkdown": "The same error! When using '(pretrained=True)' in pytorch. Maybe it uses tqdm.",
      "votes": null
    },
    {
      "id": "751900",
      "postDate": "02/20/2020 16:11:56",
      "content": "<p>I don't think so.\n<code>pretrained=True</code> will download the weights and your kernel's internet might be off. May be that's why you're getting that error.</p>",
      "rawMarkdown": "I don't think so.\n`pretrained=True` will download the weights and your kernel's internet might be off. May be that's why you're getting that error.",
      "votes": null
    },
    {
      "id": "752476",
      "postDate": "02/21/2020 04:03:50",
      "content": "<p>Pretrain = True downloads the weights and it has that tqdm progressbar.</p>",
      "rawMarkdown": "Pretrain = True downloads the weights and it has that tqdm progressbar.",
      "votes": null
    },
    {
      "id": "752555",
      "postDate": "02/21/2020 06:39:24",
      "content": "<p>Yes, I think you are right. I have gone through the same issue and once I commented out that, it worked perfectly. At that time I did not realize what could go wrong but seems like that was the issue. </p>",
      "rawMarkdown": "Yes, I think you are right. I have gone through the same issue and once I commented out that, it worked perfectly. At that time I did not realize what could go wrong but seems like that was the issue.",
      "votes": null
    },
    {
      "id": "752556",
      "postDate": "02/21/2020 06:41:00",
      "content": "<p>I did the same and it resolved my issue. So yes that is the solution. </p>",
      "rawMarkdown": "I did the same and it resolved my issue. So yes that is the solution.",
      "votes": null
    },
    {
      "id": "846576",
      "postDate": "05/13/2020 21:10:28",
      "content": "<p>The problem has been fixed. Unfortunately, you may have to recreate the notebook which contains some wrong metadata.</p>",
      "rawMarkdown": "The problem has been fixed. Unfortunately, you may have to recreate the notebook which contains some wrong metadata.",
      "votes": null
    },
    {
      "id": "856390",
      "postDate": "05/21/2020 17:12:13",
      "content": "<p>Wow! Thanks for the reply. So you mean even after problem is fixed, we have to re create it by copy pasting each cell to new notebooks? <a href=\"/gphilmod\">@gphilmod</a> </p>",
      "rawMarkdown": "Wow! Thanks for the reply. So you mean even after problem is fixed, we have to re create it by copy pasting each cell to new notebooks? @gphilmod",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 751662,
      "author_name": "santosh16k",
      "author_url": "",
      "post_date": "02/20/2020 11:33:59",
      "content": "<p>Better use it only when testing things. When you want to commit the notebook, get rid of tqdm. It is because of the widgets, tqdm produces.</p>\n\n<p><a href=\"/yosshi999\">@yosshi999</a> mentioned that he was able to get rid of it by using tqdm instead of tqdm_notebook. You can find the discussion <a href=\"https://www.kaggle.com/c/bengaliai-cv19/discussion/130911\">here</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 752556,
          "author_name": "urvishp80",
          "author_url": "",
          "post_date": "02/21/2020 06:41:00",
          "content": "<p>I did the same and it resolved my issue. So yes that is the solution. </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 751788,
      "author_name": "luzerochen",
      "author_url": "",
      "post_date": "02/20/2020 14:13:16",
      "content": "<p>The same error! When using '(pretrained=True)' in pytorch. Maybe it uses tqdm.</p>",
      "votes": null,
      "replies": [
        {
          "id": 751900,
          "author_name": "santosh16k",
          "author_url": "",
          "post_date": "02/20/2020 16:11:56",
          "content": "<p>I don't think so.\n<code>pretrained=True</code> will download the weights and your kernel's internet might be off. May be that's why you're getting that error.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 752476,
          "author_name": "kaushal2896",
          "author_url": "",
          "post_date": "02/21/2020 04:03:50",
          "content": "<p>Pretrain = True downloads the weights and it has that tqdm progressbar.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 752555,
      "author_name": "urvishp80",
      "author_url": "",
      "post_date": "02/21/2020 06:39:24",
      "content": "<p>Yes, I think you are right. I have gone through the same issue and once I commented out that, it worked perfectly. At that time I did not realize what could go wrong but seems like that was the issue. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 846576,
      "author_name": "gphilmod",
      "author_url": "",
      "post_date": "05/13/2020 21:10:28",
      "content": "<p>The problem has been fixed. Unfortunately, you may have to recreate the notebook which contains some wrong metadata.</p>",
      "votes": null,
      "replies": [
        {
          "id": 856390,
          "author_name": "kaushal2896",
          "author_url": "",
          "post_date": "05/21/2020 17:12:13",
          "content": "<p>Wow! Thanks for the reply. So you mean even after problem is fixed, we have to re create it by copy pasting each cell to new notebooks? <a href=\"/gphilmod\">@gphilmod</a> </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "751656": "I have a few notebooks having tqdm progress bar which fails with the following log when committed:\n\n```\n--- Logging error ---\n53.97\n4\nTraceback (most recent call last):\n53.97\n5\nFile \"/opt/conda/lib/python3.6/site-packages/nbconvert/exporters/exporter.py\", line 318, in _preprocess\n53.97\n6\nnbformat.validate(nbc, relax_add_props=True)\n53.97\n7\nFile \"/opt/conda/lib/python3.6/site-packages/nbformat/validator.py\", line 277, in validate\n53.97\n8\nraise error\n53.97\n9\nnbformat.validator.NotebookValidationError: {'version_major': 2, 'version_minor': 0, 'model_id': 'b60454725dc84429bfc40f191073dbf5'} is not valid under any of the given schemas\n53.97\n10\n53.97\n11\nFailed validating 'oneOf' in display_data['properties']['data']['patternProperties']['^(?!application/json$)[a-zA-Z0-9]+/[a-zA-Z0-9\\\\-\\\\+\\\\.]+$']:\n53.97\n12\n53.97\n13\nOn instance['cells'][22]['outputs'][0]['data']['application/vnd.jupyter.widget-view+json']:\n53.97\n14\n{'model_id': 'b60454725dc84429bfc40f191073dbf5',\n53.97\n15\n'version_major': 2,\n53.97\n16\n'version_minor': 0}\n53.97\n17\n53.97\n18\nDuring handling of the above exception, another exception occurred:\n53.97\n19\n53.97\n20\nTraceback (most recent call last):\n53.97\n21\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 993, in emit\n53.97\n22\nmsg = self.format(record)\n53.97\n23\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 839, in format\n53.97\n24\nreturn fmt.format(record)\n53.97\n25\nFile \"/opt/conda/lib/python3.6/site-packages/traitlets/config/application.py\", line 117, in format\n53.97\n26\nreturn super(LevelFormatter, self).format(record)\n53.97\n27\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 576, in format\n53.97\n28\nrecord.message = record.getMessage()\n53.97\n29\nFile \"/opt/conda/lib/python3.6/logging/__init__.py\", line 338, in getMessage\n53.97\n30\nmsg = msg % self.args\n53.97\n31\nTypeError: not all arguments converted during string formatting\n53.97\n32\nCall stack:\n53.97\n33\nFile \"/opt/conda/bin/jupyter-nbconvert\", line 11, in",
    "751662": "Better use it only when testing things. When you want to commit the notebook, get rid of tqdm. It is because of the widgets, tqdm produces.\n\n@yosshi999 mentioned that he was able to get rid of it by using tqdm instead of tqdm_notebook. You can find the discussion [here](https://www.kaggle.com/c/bengaliai-cv19/discussion/130911)",
    "751788": "The same error! When using '(pretrained=True)' in pytorch. Maybe it uses tqdm.",
    "751900": "I don't think so.\n`pretrained=True` will download the weights and your kernel's internet might be off. May be that's why you're getting that error.",
    "752476": "Pretrain = True downloads the weights and it has that tqdm progressbar.",
    "752555": "Yes, I think you are right. I have gone through the same issue and once I commented out that, it worked perfectly. At that time I did not realize what could go wrong but seems like that was the issue.",
    "752556": "I did the same and it resolved my issue. So yes that is the solution.",
    "846576": "The problem has been fixed. Unfortunately, you may have to recreate the notebook which contains some wrong metadata.",
    "856390": "Wow! Thanks for the reply. So you mean even after problem is fixed, we have to re create it by copy pasting each cell to new notebooks? @gphilmod"
  },
  "source": "meta"
}