Skip to content

Conversation

@MridulS
Copy link
Member

@MridulS MridulS commented Sep 2, 2025

Fixes #3246

There was a typo in setting up the config and pre-commit wasn't running the correct config for nbstripout.

types: [ "jupyter" ]
args: [ "--drop-empty-cells",
"--extra-keys 'metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm'" ]
"--extra-keys=metadata.language_info.version cell.metadata.jp-MarkdownHeadingCollapsed cell.metadata.pycharm" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Does this still use all 3 keys? I would expect that it needs quotation marks around them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It catches jp-Markdown in docs/getting-started/tutorials/solar_flares.ipynb in the diff so I guess it works fine without quotes.

@MridulS MridulS enabled auto-merge (squash) September 4, 2025 12:44
@MridulS MridulS merged commit 09df43b into scipp:main Sep 4, 2025
4 checks passed
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.

Strip Python version from notebooks

2 participants