Skip to content

GitHub cannot render going_modular notebooks due to outdated widget metadata #1355

Description

@pranav-mahure

Hi Daniel,

Thanks for maintaining this repository and creating the PyTorch course.

I noticed that GitHub is currently unable to render some notebooks in the going_modular section. GitHub shows the following error:

There was an error rendering your Notebook: the 'state' key is missing from 'metadata.widgets'. Add 'state' to each, or remove 'metadata.widgets'.

The affected notebooks are:

  • 05_pytorch_going_modular_cell_mode.ipynb
  • 05_pytorch_going_modular_script_mode.ipynb

After investigating, it appears the issue is caused by outdated widget metadata that is no longer compatible with GitHub's notebook renderer.

Removing the metadata.widgets section allows the notebooks to render correctly while preserving their contents.

I've opened a pull request with the proposed fix.

Thank you for your work on this project.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions