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
TagRemovePreprocessor.remove_cell_tags works only with html output #764
Comments
I have recreated this behavior. I too am curious if this is a bug or normal behavior? The following config file does produce a script named script.py but, includes the cells tagged with nbonly. The following config file produces a file named script.html and correctly excluded the cells tagged with nbonly In the meantime I'll clone the repo and see if I can add anything. If anyone is willing to accelerate my research, I'm always open to suggestions on where in the codebase to start : ) |
Same problem here for PDF outputs. This preprocessor seems to do nothing for non-HTML targets. |
If you need a Python script,
I am also wondering if this is a bug or an intended design. Nevertheless, the nbconvert doc should be improved. |
It looks like that for some exporters you need to explicitly enable it with
logs
[NbConvertApp] Writing 1335 bytes to L01.nbconvert.ipynb and actually fliters out the cells. |
Thanks @mapio! I experienced the same issue and your solution of explicitly enabling the tag remove processor worked for me. |
@mapio I ran this command on a notebook containing
The resulting notebook had a validation error:
|
I've never used svg in a notebook, sorry… |
Hi,
I want to use TagRemovePreprocessor.remove_cell_tag when converting a notebook to a script, but this preprocessor seems to work only with html output ? Is it a bug or normal behavior ?
The text was updated successfully, but these errors were encountered: