Skip to content

Commit 23d23a2

Browse files
committed
added option to hide code input but still show output (see @gpagliuca PR spatialaudio#86)
1 parent 11a6e4d commit 23d23a2

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
@@ -94,6 +94,13 @@
9494
{% endif %}
9595
{%- endblock any_cell %}
9696
97+
{% block input_group -%}
98+
{%- if cell.metadata.hide_input -%}
99+
{%- else -%}
100+
{{ super() }}
101+
{%- endif -%}
102+
{% endblock input_group %}
103+
97104
98105
{% block input -%}
99106
.. nbinput:: {% if cell.metadata.magics_language -%}

0 commit comments

Comments
 (0)