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

Using nbconvert.preprocessors.RegexRemovePreprocessor #341

Open
ratnanil opened this issue Oct 18, 2019 · 2 comments
Open

Using nbconvert.preprocessors.RegexRemovePreprocessor #341

ratnanil opened this issue Oct 18, 2019 · 2 comments

Comments

@ratnanil
Copy link

I read @mgeier's answer to a question (#285) regarding the skipping of some cells using a regex. I'm totally at a loss here and and don't know whether I'm look in the right place: But is there a way to use nbconvert.preprocessors.RegexRemovePreprocessor with sphinx /nbsphinx on individual *.ipynb files to skip cells based on a regex? I would be very glad for a pointer!

@mgeier
Copy link
Member

mgeier commented Oct 19, 2019

There is currently no way to specify which preprocessors are to be used.

The HighlightMagicsPreprocessor is hard-coded to be enabled, the RegexRemovePreprocessor is hard-coded to be disabled (but latter is not necessary anymore, because the original problem has been fixed in jupyter/nbconvert#784).

There is currently no way to specify additional preprocessors, but such a feature has been suggested in #305. Feel free to add comments there and feel free to make a PR.

@mgeier
Copy link
Member

mgeier commented Oct 19, 2019

I forgot: The ExecutePreprocessor is used directly in the nbsphinx source code, without using nbconvert's "config" mechanism.

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