Open hussam-i-am opened 5 months ago
I had the same problem, see https://github.com/jupyter/nbconvert/issues/1731#issuecomment-1113451797.
In short, just delete notebook.metadata.widgets
and it works.
Make sure that values exist before you can delete them, so that you do not get a KeyError depending on the notebook:
if "metadata" in notebook:
notebook.metadata.pop("widgets", None)
(body, resources) = html_exporter.from_notebook_node(notebook)
Hi, with the most recent release v7.16.2 I noticed that notebooks that do not have the "state" field are causing exceptions to be thrown:
cc @yuvipanda