Skip to content

Fix: Add missing metadata.widgets.state to broken notebooks #381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ps-abhi
Copy link

@ps-abhi ps-abhi commented Jul 10, 2025

Description

Fixes an issue where multiple Jupyter notebooks were missing the widgets.state in their metadata. This missing key caused notebooks to fail rendering properly on GitHub.

The fix adds an empty "state": {} object to each affected notebook’s widget metadata to conform with Jupyter notebook format requirements.

Fixes #376 and patches all affected notebooks, not just the one originally mentioned.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

Notebooks were checked if they rendered properly on Github without the invalid notebook error.

Any specific deployment considerations

None

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ps-abhi ps-abhi mentioned this pull request Jul 10, 2025
2 tasks
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.

sam 2 notebook is corrupt?
1 participant