From 98a44b1a7eb2238572ea92ff39fb49577db2252c Mon Sep 17 00:00:00 2001 From: Brett Barkley Date: Mon, 3 Dec 2018 17:25:26 -0500 Subject: [PATCH] added option to hide code input but still show output (see @gpagliuca PR #86) --- src/nbsphinx.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nbsphinx.py b/src/nbsphinx.py index 884522a2..6262a50c 100644 --- a/src/nbsphinx.py +++ b/src/nbsphinx.py @@ -94,6 +94,13 @@ {% endif %} {%- endblock any_cell %} +{% block input_group -%} +{%- if cell.metadata.hide_input -%} +{%- else -%} +{{ super() }} +{%- endif -%} +{% endblock input_group %} + {% block input -%} .. nbinput:: {% if cell.metadata.magics_language -%}