Skip to content

Fix Invalid Notebook error#105

Open
cian-ps wants to merge 1 commit intoTheAlgorithms:masterfrom
cian-ps:fix/notebook-metadata-issue
Open

Fix Invalid Notebook error#105
cian-ps wants to merge 1 commit intoTheAlgorithms:masterfrom
cian-ps:fix/notebook-metadata-issue

Conversation

@cian-ps
Copy link

@cian-ps cian-ps commented Feb 2, 2026

Problem

When trying to view the preview of neural_network/CNN_Pytorch.ipynb, Github displays the following error:
Invalid Notebook! There was an error rendering your Notebook: the 'state' key is missing from 'metadata.widgets'. Add 'state' to each, or remove 'metadata.widgets'.,
which is due to interactive widget metadata in the notebook's Json.

What I have done

I addressed this problem by removing the problematic metadata on both notebook level and cell level.

Effects

  • Github is now able to render the notebook.
  • All cells and cell outputs of the notebook remain unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant