Skip to content

Commit e8817a4

Browse files
committed
added option to hide code input but still show output (see @gpagliuca PR spatialaudio#86)
1 parent 68b709e commit e8817a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/nbsphinx.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@
9393
{% endif %}
9494
{%- endblock any_cell %}
9595
96+
{% block input_group -%}
97+
{%- if cell.metadata.hide_input -%}
98+
{%- else -%}
99+
{{ super() }}
100+
{%- endif -%}
101+
{% endblock input_group %}
102+
96103
97104
{% block input -%}
98105
.. nbinput:: {% if cell.metadata.magics_language -%}

0 commit comments

Comments
 (0)