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

Explicitly Disabling Notebook Execution for one cell #659

Open
joamatab opened this issue Aug 10, 2022 · 1 comment
Open

Explicitly Disabling Notebook Execution for one cell #659

joamatab opened this issue Aug 10, 2022 · 1 comment

Comments

@joamatab
Copy link

How can nbsphinx ignore one specific cell?

ideally we would add something like

NBSPHINX SKIP
print('this code should never run')

gdsfactory/gdsfactory#335

@mgeier
Copy link
Member

mgeier commented Aug 26, 2022

nbsphinx uses nbconvert for executing notebooks (which in turn uses nbclient).

Is it possible to ignore one cell in nbconvert?

If yes, I can try to enable that in nbsphinx.

Alternatively, you can try https://github.com/executablebooks/MyST-NB, maybe it is possible with that?

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

No branches or pull requests

2 participants