From e8817a4e5449326c55796e389143b34a4331c890 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 a80e9e98..03005e97 100644 --- a/src/nbsphinx.py +++ b/src/nbsphinx.py @@ -93,6 +93,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 -%}