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

ipub.ignore is only honoured for slide output #119

Open
phelps-sg opened this issue Nov 28, 2019 · 4 comments
Open

ipub.ignore is only honoured for slide output #119

phelps-sg opened this issue Nov 28, 2019 · 4 comments

Comments

@phelps-sg
Copy link
Contributor

Bug Report

Describe the bug

The documentation seems to imply that the ipub.ignore cell metadata applies for all formats, but in fact it is only used by slides_from_markdown preprocessor.

To Reproduce

Mark a cell to be ignored in a notebook, and publish it to a non-slide format, e.g. latex.

Expected Behaviour

The converted notebook should not contain any slides whose metadata has ipub.ignore=true.

Runtime Information

(please complete the following information)

  • IPyPublish: [e.g. 0.10.10]

  • Python: [e.g. 3.7.3]

  • OS: [e.g. Linux Mint 18.03]

  • Pandoc: [ 2.7.3]

  • (optional for pdf issues) texlive: [run tex]

  • (optional for pdf issues) latexmk: [run latexmk --version]

@phelps-sg phelps-sg added the bug label Nov 28, 2019
@phelps-sg phelps-sg mentioned this issue Dec 4, 2019
@chrisjsewell
Copy link
Owner

@phelps-sg this should be handled in the jinja template, and should not require a pre-processor (as you have done in #120 ).
For example, at

and

Processing any input / output cells with ipub.ignore should be skipped.
Could you perhaps let me know what specific publishing format this is occuring on?

@phelps-sg
Copy link
Contributor Author

This is happening all publishing formats apart from slides. I have added test-cases in #120 which should illustrate the problem.

@chrisjsewell
Copy link
Owner

No problem, I’ll add the test cases and see why the jinja templates are failing to do their job 😬

@phelps-sg
Copy link
Contributor Author

PS - The slides_from_markdown preprocessor sets {cell_type: skip} for any cell with metadata {ipub: {ignore: true}}, which is why publishing to slides seems to work correctly (incidentally this is also the reason that I assumed preprocessing was the correcy way to handle ipub.ignore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants