In various jupyter notebooks I want to manually specify which input cells to show and per default not show any input cell when converting it to a pdf or tex document.
I already achieved not showing any input cells by using following latex template:
((*- extends 'article.tplx' -*))
% Disable input cells
((* block input_group *))
((* endblock input_group *))
But now, when trying to add cell tags and then showing them or not I'm confusing. I tried
% Disable input cells if there is no "show" tag, else show
((*- block input_group -*))
((*- if 'show' in cell.metadata.get('tags', []) -*))
((*- block in_prompt -*))((*- endblock in_prompt -*))
((*- block input -*))((*- endblock input -*))
((*- else -*))
((*- endif -*))
((*- endblock input_group -*))
but it's always removing all input cells, the one with "show" tag too.