Skip to content
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

🙈 Notebook Cell Tags Documentation #1750

Merged
merged 5 commits into from
Jan 9, 2025
Merged

🙈 Notebook Cell Tags Documentation #1750

merged 5 commits into from
Jan 9, 2025

Conversation

rowanc1
Copy link
Member

@rowanc1 rowanc1 commented Jan 9, 2025

Copy link

changeset-bot bot commented Jan 9, 2025

🦋 Changeset detected

Latest commit: e3bc979

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
myst-execute Patch
myst-common Patch
myst-to-typst Patch
myst-to-docx Patch
myst-to-jats Patch
myst-to-tex Patch
myst-to-md Patch
myst-cli Patch
myst-config Patch
myst-frontmatter Patch
myst-spec-ext Patch
jats-to-myst Patch
tex-to-myst Patch
mystmd Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rowanc1 rowanc1 requested a review from fwkoch January 9, 2025 22:43
@rowanc1 rowanc1 merged commit 67bc9b8 into main Jan 9, 2025
7 checks passed
@rowanc1 rowanc1 deleted the docs/cell-tags branch January 9, 2025 22:50
}
/**
* Return true if the given code block should not be executed
*
* @param node block to test
*/
function codeBlockSkipsExecution(node: CodeBlock) {
return !!node.data?.tags?.includes?.('skip-execution');
return !!node.data?.tags?.includes?.(NotebookCellTags.skipExecution);
Copy link
Contributor

Choose a reason for hiding this comment

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

Much better!

Copy link
Member Author

Choose a reason for hiding this comment

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

Small little improvements. I was in there looking to implement this and was surprised it was already done!

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.

Control code cell visibility and behavior with tags and metadata
2 participants