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

Use jupyter-input directive for cells that should not be run #74

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

rikvl
Copy link
Collaborator

@rikvl rikvl commented Dec 30, 2023

We had some code blocks in the docs containing only commented-out code. The reason for having these was to show the code in the docs, but we didn't want these blocks to run because they produce data files. I don't remember why exactly producing those data files was a problem.

When I worked on this 2 years ago, I read that a new version of jupyter-sphinx would feature a solution: a directive to just show the code as an input cell, without executing it. This commit was just waiting for that new version, which is out by now (and has been for quite some time, I imagine).

Copy link
Owner

@mhvk mhvk left a comment

Choose a reason for hiding this comment

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

Nice!!

@mhvk mhvk merged commit 4cd5a59 into main Dec 30, 2023
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.

2 participants