Skip to content

Commit

Permalink
fix #1069
Browse files Browse the repository at this point in the history
  • Loading branch information
seeM committed Sep 21, 2022
1 parent 321e06c commit 289db3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbdev/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def clean_nb(
clean_ids=True, # Remove ids from plaintext reprs?
):
"Clean `nb` from superfluous metadata"
metadata_keys = {"kernelspec", "jekyll", "jupytext", "doc"}
metadata_keys = {"kernelspec", "jekyll", "jupytext", "doc", "widgets"}
if allowed_metadata_keys: metadata_keys.update(allowed_metadata_keys)
cell_metadata_keys = {"hide_input"}
if allowed_cell_metadata_keys: cell_metadata_keys.update(allowed_cell_metadata_keys)
Expand Down
2 changes: 1 addition & 1 deletion nbs/api/clean.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
" clean_ids=True, # Remove ids from plaintext reprs?\n",
"):\n",
" \"Clean `nb` from superfluous metadata\"\n",
" metadata_keys = {\"kernelspec\", \"jekyll\", \"jupytext\", \"doc\"}\n",
" metadata_keys = {\"kernelspec\", \"jekyll\", \"jupytext\", \"doc\", \"widgets\"}\n",
" if allowed_metadata_keys: metadata_keys.update(allowed_metadata_keys)\n",
" cell_metadata_keys = {\"hide_input\"}\n",
" if allowed_cell_metadata_keys: cell_metadata_keys.update(allowed_cell_metadata_keys)\n",
Expand Down

0 comments on commit 289db3a

Please sign in to comment.